Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4248 ownercollab read permissions for project preferences #4299

Merged

Conversation

Tooyosi
Copy link
Contributor

@Tooyosi Tooyosi commented Feb 29, 2024

Describe your change here.

Review checklist

  • First, the most important one: is this PR small enough that you can actually review it? Feel free to just reject a branch if the changes are hard to review due to the length of the diff.
  • If there are any migrations, will they the previous version of the app work correctly after they've been run (e.g. the don't remove columns still known about by ActiveRecord).
  • If anything changed with regards to the public API, are those changes also documented in the apiary.apib file?
  • Are all the changes covered by tests? Think about any possible edge cases that might be left untested.

@yuenmichelle1
Copy link
Collaborator

Related to Issue: #4248

Copy link
Collaborator

@yuenmichelle1 yuenmichelle1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Changes look good. 👍

Not blocking, but I would add a test to ensure other attributes are not being serialized into the response for read/update_settings.
(Eg. 'read_settings response does not serialize irrelevant attributes') Something along those lines.

Pinging @zwolf so he's aware of changes made. (@zwolf no added work for you here, unless you wanted to add anything).


expect(first_response).to have_key 'settings'
expect(first_response).to_not have_key 'activity_count_by_workflow'
expect(first_response).to_not have_key 'email_communication'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSpec/NotToNot: Prefer not_to over to_not.

first_response = json_response['project_preferences'].first

expect(first_response).to have_key 'settings'
expect(first_response).to_not have_key 'activity_count_by_workflow'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSpec/NotToNot: Prefer not_to over to_not.

@Tooyosi Tooyosi merged commit d8277ff into master Mar 4, 2024
8 checks passed
@Tooyosi Tooyosi deleted the 4248-ownercollab-read-permissions-for-project-preferences branch March 4, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants