stable

Clone or download

Read-only

Update last access date of an access key according to the last_access_resolution setting

The goal is to limit a write hotspot in the DB when a user queries intensively the REST API. The last access resolution has been lowered to 1 hour which seem a good compromise. The last_access_resolution setting is only taken into account if the IP of the user have not changed, otherwise the last access values are updated. This is part of story #12266: use an API key rather than a login / password Change-Id: I7762589ae7b18cb037a60b569b20be4652b98cab

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +3 −0 Go to diff View file
M site-content/tuleap-core.pot +3 −0 Go to diff View file
M src/common/User/AccessKey/AccessKeyDAO.php +2 −2 Go to diff View file
M src/common/User/AccessKey/AccessKeyVerifier.php +19 −3 Go to diff View file
M src/common/User/PreferencesPresenter.class.php +7 −0 Go to diff View file
M src/etc/local.inc.dist +3 −3 Go to diff View file
M src/templates/user/access-keys.mustache +9 −1 Go to diff View file
M src/www/themes/common/css/utils/_account-maintenance.scss +4 −0 Go to diff View file
M tests/phpunit/common/User/AccessKey/AccessKeyVerifierTest.php +60 −11 Go to diff View file