[openSUSE/open-build-service] 8f3f82: Introduce `fetch` method to access cached Configur...
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 8f3f82b3505fab7ab3e3d4a8b33e87c2eec35187 https://github.com/openSUSE/open-build-service/commit/8f3f82b3505fab7ab3e3d4... Author: Eduardo Navarro <enavarro@suse.com> Date: 2024-05-15 (Wed, 15 May 2024) Changed paths: M src/api/app/models/configuration.rb Log Message: ----------- Introduce `fetch` method to access cached Configuration Commit: cc5534c8f46391a4d1c80d3272bdb620122a67f5 https://github.com/openSUSE/open-build-service/commit/cc5534c8f46391a4d1c80d... Author: Eduardo Navarro <enavarro@suse.com> Date: 2024-05-15 (Wed, 15 May 2024) Changed paths: M src/api/app/models/configuration.rb Log Message: ----------- Use cache for Configuration field methods Commit: d2459bac18d509f2aa6c1b6cbce4b7c3d1ff5a21 https://github.com/openSUSE/open-build-service/commit/d2459bac18d509f2aa6c1b... Author: Eduardo Navarro <enavarro@suse.com> Date: 2024-05-15 (Wed, 15 May 2024) Changed paths: M src/api/app/controllers/configurations_controller.rb M src/api/app/controllers/public_controller.rb M src/api/app/controllers/webui/feeds_controller.rb M src/api/app/controllers/webui/webui_controller.rb M src/api/app/mailers/admin_mailer.rb M src/api/app/mailers/event_mailer.rb M src/api/app/policies/webui/user_policy.rb M src/api/spec/policies/webui/user_policy_spec.rb Log Message: ----------- Use cache to fetch configuration Commit: e4aea5e0a9834809baf45d8c6ba4aa4f71fe3017 https://github.com/openSUSE/open-build-service/commit/e4aea5e0a9834809baf45d... Author: Eduardo Navarro <enavarro@suse.com> Date: 2024-05-15 (Wed, 15 May 2024) Changed paths: M src/api/app/controllers/webui/code_of_conduct_controller.rb M src/api/app/models/project/remote_url.rb Log Message: ----------- Use class methods instead of instance methods ... ... to access Configuration singleton Commit: a927f8af45b818f046cb07420b573531fabfeeae https://github.com/openSUSE/open-build-service/commit/a927f8af45b818f046cb07... Author: Eduardo Navarro <enavarro@suse.com> Date: 2024-05-15 (Wed, 15 May 2024) Changed paths: M src/api/spec/factories/users.rb Log Message: ----------- Adapt user factory to modify the `updated_at` field Otherwise, a modification of a field with `update_column` will not update the `updated_at` column and a cache miss will not happen. Commit: 4fcf548ba052a272be0f638dbd6dc65ff6187657 https://github.com/openSUSE/open-build-service/commit/4fcf548ba052a272be0f63... Author: Eduardo Navarro <enavarro@suse.com> Date: 2024-05-15 (Wed, 15 May 2024) Changed paths: M src/api/spec/models/user_spec.rb Log Message: ----------- Prevent from freezing the time in one user spec This way, a miss in the Configuration singleton cache will happen. Commit: faa79aad287f0ef1b52469c32757c0c3170cacfd https://github.com/openSUSE/open-build-service/commit/faa79aad287f0ef1b52469... Author: Henne Vogelsang <hvogel@opensuse.org> Date: 2024-05-15 (Wed, 15 May 2024) Changed paths: M src/api/app/controllers/configurations_controller.rb M src/api/app/controllers/public_controller.rb M src/api/app/controllers/webui/code_of_conduct_controller.rb M src/api/app/controllers/webui/feeds_controller.rb M src/api/app/controllers/webui/webui_controller.rb M src/api/app/mailers/admin_mailer.rb M src/api/app/mailers/event_mailer.rb M src/api/app/models/configuration.rb M src/api/app/models/project/remote_url.rb M src/api/app/policies/webui/user_policy.rb M src/api/spec/factories/users.rb M src/api/spec/models/user_spec.rb M src/api/spec/policies/webui/user_policy_spec.rb Log Message: ----------- Merge pull request #16130 from eduardoj/feature/configuration_cache Introduce cache for singleton record of Configuration Compare: https://github.com/openSUSE/open-build-service/compare/f3b132234d7c...faa79a... To unsubscribe from these emails, change your notification settings at https://github.com/openSUSE/open-build-service/settings/notifications
participants (1)
-
Henne Vogelsang