Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 9526d42de9f0f753371a23fcb1ce10a382f17d68
https://github.com/openSUSE/open-build-service/commit/9526d42de9f0f753371a23...
Author: Saray Cabrera Padrón
Date: 2020-05-28 (Thu, 28 May 2020)
Changed paths:
M src/api/app/helpers/webui/main_helper.rb
M src/api/app/models/status_message.rb
M src/api/app/views/webui/main/_add_status_message_modal.html.haml
M src/api/spec/controllers/status_messages_controller_spec.rb
M src/api/spec/controllers/webui/status_messages_controller_spec.rb
M src/api/spec/factories/status_message.rb
M src/api/test/functional/status_controller_test.rb
Log Message:
-----------
Add announcement severity to StatusMessage
Announcement and StatusMessage functionalities are going to be merged,
they are quite similar.
To do so, StatuMessage's severity is going to include a new value:
"announcement". This kind of status message is going to be displayed in
a different way and need acceptance from the user.
An enum is defined for severity values and they will be introduced as
strings and not like integers.
Co-authored-by: Victor Pereira
Commit: d17a9199e0c027d76600e2d5fe59a153bbda8962
https://github.com/openSUSE/open-build-service/commit/d17a9199e0c027d76600e2...
Author: Saray Cabrera Padrón
Date: 2020-05-28 (Thu, 28 May 2020)
Changed paths:
M src/api/app/controllers/webui/status_messages_controller.rb
M src/api/app/controllers/webui/webui_controller.rb
M src/api/app/models/status_message.rb
A src/api/app/models/status_message_acknowledgement.rb
M src/api/app/models/user.rb
A src/api/app/views/layouts/webui/_status_message_announcement.html.haml
M src/api/app/views/layouts/webui/webui.html.haml
A src/api/app/views/webui/status_messages/acknowledge.js.haml
M src/api/config/routes/webui_routes.rb
A src/api/db/migrate/20200522092917_status_message_acknowledgements.rb
M src/api/db/structure.sql
Log Message:
-----------
Display announcement status messages as flash
Status messages with severity 'announcement' are also displayed as a flash
messages all over the website. The announcement gets hidden and no longer
displayed for the user who acknowledges it.
The relationship between a user and an acknowledged status message is
stored in database.
Co-authored-by: Victor Pereira
Commit: 715c8ff01ee7a2ed1a017d95af6d8a2ee92bbcf8
https://github.com/openSUSE/open-build-service/commit/715c8ff01ee7a2ed1a017d...
Author: Victor Pereira
Date: 2020-05-28 (Thu, 28 May 2020)
Changed paths:
M docs/api/api/status_message.xml
A docs/api/api/status_message.xsd
M src/api/app/controllers/status_messages_controller.rb
M src/api/app/models/status_message.rb
A src/api/app/policies/status_message_policy.rb
A src/api/app/views/status_messages/_status_message.xml.builder
M src/api/app/views/status_messages/index.xml.builder
A src/api/app/views/status_messages/show.xml.builder
M src/api/spec/controllers/status_messages_controller_spec.rb
A src/api/spec/models/status_message_spec.rb
M src/api/test/functional/status_controller_test.rb
Log Message:
-----------
Adapt API's StatusMessage to the new structure
Handle scope (communication_scope) in status message's XML.
The validation schema considers scope as optional. When the value is not
passed, the default value "all_users" is stored instead.
Add show view to status message and move StatusMessageController related
views to partials.
Adapt tests and docs's XML files.
Co-authored-by: Victor Pereira
Commit: f302927a4fd98c84f4d7cfdaeca02dda9f4d62d1
https://github.com/openSUSE/open-build-service/commit/f302927a4fd98c84f4d7cf...
Author: Saray Cabrera Padrón
Date: 2020-05-28 (Thu, 28 May 2020)
Changed paths:
M src/api/app/controllers/webui/main_controller.rb
M src/api/app/controllers/webui/status_messages_controller.rb
M src/api/app/controllers/webui/webui_controller.rb
M src/api/app/models/status_message.rb
R src/api/app/views/webui/main/_add_status_message_modal.html.haml
M src/api/app/views/webui/main/_status_messages.html.haml
M src/api/app/views/webui/main/responsive_ux/_index_actions.html.haml
A src/api/app/views/webui/status_messages/_breadcrumb_items.html.haml
A src/api/app/views/webui/status_messages/new.html.haml
M src/api/config/routes/webui_routes.rb
A src/api/db/migrate/20200522145733_add_communication_scope_to_status_message.rb
A src/api/db/migrate/20200522151615_backfill_add_communication_scope_to_status_message.rb
M src/api/db/structure.sql
M src/api/spec/controllers/webui/status_messages_controller_spec.rb
M src/api/spec/factories/status_message.rb
M src/api/spec/models/status_message_spec.rb
Log Message:
-----------
Add communication scope to status messages
Certain status messages can be displayed for a specific group of users,
what we call communication scope.
At the moment the groups are:
- All users
- Logged in users
- Admin users
- In beta users
- In rollout users
"All users" is the default communication scope. To avoid downtime when
setting this default value in database, two migrations has been added.
One to add the field and another to backfill it with the default value
in all the existent records.
If the status message was created with "announcement" severity,
it is displayed on the top of the page.
The displayed announcement will always be the newest one among those the
user is allowed to see. In case that announcement is already
acknowledged by the user, it will not be displayed.
The StatusMessage new for has been moved from modal to its dedicated new
page.
Co-authored-by: Victor Pereira
Co-authored-by: David Kang
Co-authored-by: Victor Pereira
Commit: 30ac15a69c691823a0706000a6108d4b5b00fe21
https://github.com/openSUSE/open-build-service/commit/30ac15a69c691823a07060...
Author: Saray Cabrera Padrón
Date: 2020-05-29 (Fri, 29 May 2020)
Changed paths:
M ReleaseNotes-2.11
Log Message:
-----------
Mention status message change in Release notes
Co-authored-by: Henne Vogelsang
Commit: f86f173aa81e37b96682eb303bb05dac6171614b
https://github.com/openSUSE/open-build-service/commit/f86f173aa81e37b96682eb...
Author: Saray Cabrera Padrón
Date: 2020-05-29 (Fri, 29 May 2020)
Changed paths:
M ReleaseNotes-2.11
M docs/api/api/status_message.xml
A docs/api/api/status_message.xsd
M src/api/app/controllers/status_messages_controller.rb
M src/api/app/controllers/webui/main_controller.rb
M src/api/app/controllers/webui/status_messages_controller.rb
M src/api/app/controllers/webui/webui_controller.rb
M src/api/app/helpers/webui/main_helper.rb
M src/api/app/models/status_message.rb
A src/api/app/models/status_message_acknowledgement.rb
M src/api/app/models/user.rb
A src/api/app/policies/status_message_policy.rb
A src/api/app/views/layouts/webui/_status_message_announcement.html.haml
M src/api/app/views/layouts/webui/webui.html.haml
A src/api/app/views/status_messages/_status_message.xml.builder
M src/api/app/views/status_messages/index.xml.builder
A src/api/app/views/status_messages/show.xml.builder
R src/api/app/views/webui/main/_add_status_message_modal.html.haml
M src/api/app/views/webui/main/_status_messages.html.haml
M src/api/app/views/webui/main/responsive_ux/_index_actions.html.haml
A src/api/app/views/webui/status_messages/_breadcrumb_items.html.haml
A src/api/app/views/webui/status_messages/acknowledge.js.haml
A src/api/app/views/webui/status_messages/new.html.haml
M src/api/config/routes/webui_routes.rb
A src/api/db/migrate/20200522092917_status_message_acknowledgements.rb
A src/api/db/migrate/20200522145733_add_communication_scope_to_status_message.rb
A src/api/db/migrate/20200522151615_backfill_add_communication_scope_to_status_message.rb
M src/api/db/structure.sql
M src/api/spec/controllers/status_messages_controller_spec.rb
M src/api/spec/controllers/webui/status_messages_controller_spec.rb
M src/api/spec/factories/status_message.rb
A src/api/spec/models/status_message_spec.rb
M src/api/test/functional/status_controller_test.rb
Log Message:
-----------
Merge pull request #9590 from saraycp/announcement_to_status_message
Add announcement functionality to status message
Compare: https://github.com/openSUSE/open-build-service/compare/9407691c5eb0...f86f17...