[openSUSE/open-build-service] 24318b: Add last_triggered column to tokens table
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 24318b38bf43e527fc475d5aca515e64353a4290 https://github.com/openSUSE/open-build-service/commit/24318b38bf43e527fc475d... Author: Lukas Krause <lkrause@suse.de> Date: 2021-11-02 (Tue, 02 Nov 2021) Changed paths: M src/api/app/models/token.rb M src/api/app/models/token/rebuild.rb M src/api/app/models/token/release.rb M src/api/app/models/token/rss.rb M src/api/app/models/token/service.rb M src/api/app/models/token/workflow.rb A src/api/db/migrate/20211102144122_add_triggered_at_to_tokens.rb M src/api/db/schema.rb Log Message: ----------- Add last_triggered column to tokens table In order to track the date and time of the last trigger of a token, we need a new column in the tokens table. Commit: 77cd9d2103105f7466fd7694561791067a48efce https://github.com/openSUSE/open-build-service/commit/77cd9d2103105f7466fd76... Author: Lukas Krause <lkrause@suse.de> Date: 2021-11-02 (Tue, 02 Nov 2021) Changed paths: M src/api/app/models/token.rb M src/api/app/models/token/rebuild.rb M src/api/app/models/token/release.rb M src/api/app/models/token/service.rb M src/api/app/models/token/workflow.rb Log Message: ----------- Set triggered_at on token call In order to show the user the date and time of the last usage of a token we need to record it when the token got called. Commit: e69459c491ac59f3eab541a0a6be9fdf92282068 https://github.com/openSUSE/open-build-service/commit/e69459c491ac59f3eab541... Author: Lukas Krause <lkrause@suse.de> Date: 2021-11-02 (Tue, 02 Nov 2021) Changed paths: M docs/api/api/tokenlist.rng M docs/api/api/tokenlist.xml M src/api/app/views/person/token/index.xml.builder M src/api/public/apidocs-new/components/schemas/person_tokens.yaml M src/api/public/apidocs-new/paths/person_login_token.yaml Log Message: ----------- Add triggered_at field to token index api endpoint and docs Commit: af62346c4b3e63c347d8d1a7bdef3f170e80dcf9 https://github.com/openSUSE/open-build-service/commit/af62346c4b3e63c347d8d1... Author: Lukas Krause <lkrause@suse.de> Date: 2021-11-02 (Tue, 02 Nov 2021) Changed paths: A src/api/spec/cassettes/Token_Release/_call/when_a_manual_release_target_is_set/records_the_current_date_and_time_in_the_triggered_at_column.yml A src/api/spec/models/token/rebuild_spec.rb M src/api/spec/models/token/release_spec.rb A src/api/spec/models/token/service_spec.rb M src/api/spec/models/token/workflow_spec.rb Log Message: ----------- Add specs for setting triggered_at column on token trigger Commit: 5c3dd1274d54d23d7e59e8e994c1df73267e5847 https://github.com/openSUSE/open-build-service/commit/5c3dd1274d54d23d7e59e8... Author: Dany Marcoux <danymarcoux@gmail.com> Date: 2021-11-03 (Wed, 03 Nov 2021) Changed paths: M docs/api/api/tokenlist.rng M docs/api/api/tokenlist.xml M src/api/app/models/token.rb M src/api/app/models/token/rebuild.rb M src/api/app/models/token/release.rb M src/api/app/models/token/rss.rb M src/api/app/models/token/service.rb M src/api/app/models/token/workflow.rb M src/api/app/views/person/token/index.xml.builder A src/api/db/migrate/20211102144122_add_triggered_at_to_tokens.rb M src/api/db/schema.rb M src/api/public/apidocs-new/components/schemas/person_tokens.yaml M src/api/public/apidocs-new/paths/person_login_token.yaml A src/api/spec/cassettes/Token_Release/_call/when_a_manual_release_target_is_set/records_the_current_date_and_time_in_the_triggered_at_column.yml A src/api/spec/models/token/rebuild_spec.rb M src/api/spec/models/token/release_spec.rb A src/api/spec/models/token/service_spec.rb M src/api/spec/models/token/workflow_spec.rb Log Message: ----------- Merge pull request #11801 from krauselukas/token_last_triggered Record time and date of the last trigger of a token Compare: https://github.com/openSUSE/open-build-service/compare/9a1cbef2f4f5...5c3dd1...
participants (1)
-
Dany Marcoux