Skip to content

Conversation

@chasetmartin
Copy link
Collaborator

Why

This PR addresses the following problem / context:

  • Some potential updates to the data-visibility-and-review.feature given the now documented legacy business logic in release_status.feature

How

Implementation summary - the following was changed / added / removed:

  • rewrote data-visibility-and-review.feature scenarios to match the business logic covered in release_status.feature while preserving the new feature’s description and rules
  • expanded public and staff access coverage so visibility and review_status behavior mirrors legacy workflows
  • documented workflow, management, integrity, and special cases to clearly separate visibility and review in business logic mirroring current release_status

Notes

Any special considerations, workarounds, or follow-up work to note?
- This PR is just meant as a discussion point - Should we change the proposed feature like this to ensure that business logic currently documented in the release_status.feature is properly covered by the data-visibility-and-review proposal?

… business logic

 - rewrote tests/features/data-visibility-and-review.feature scenarios to match the business logic covered in release_status.feature while preserving the feature’s description and rules

 - expanded public and staff access coverage so visibility and review_status behavior mirrors legacy workflows

 - documented workflow, management, integrity, and special cases to clearly separate visibility and review in business logic
Copy link
Contributor

@jacob-a-brown jacob-a-brown left a comment

Choose a reason for hiding this comment

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

Overall I think it looks good! And describes these situations well. I think that some of the steps could be made a bit more clear, such as indicating that the visibility field is set to "internal" or "public."

I often made a comment in the first appearances of these situations and if you agree with my feedback then they should be applied elsewhere too.


@management @status_change
Scenario: Making internal data public without re-review
Given a <data_type> is currently visibility internal and review_status approved
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jacob-a-brown let me know if this makes more sense with the system?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this looks good! Will the staff member already have the permissions, or will be obtained for the actions? If they already possess the permissions then I think it could read And staff has the correct permissions to change visibility, or something to that effect. If they need to be given the permissions then I think it looks good as-is.

Copy link
Contributor

@jacob-a-brown jacob-a-brown left a comment

Choose a reason for hiding this comment

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

I think it looks quite good! Just a few minor comments.


@management @status_change
Scenario: Making internal data public without re-review
Given a <data_type> is currently visibility internal and review_status approved
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this looks good! Will the staff member already have the permissions, or will be obtained for the actions? If they already possess the permissions then I think it could read And staff has the correct permissions to change visibility, or something to that effect. If they need to be given the permissions then I think it looks good as-is.

@staff_access @visibility
Scenario Outline: Staff can access all data and its review status
Given I am an authenticated staff member
And I have permission to view internal data
Copy link
Member

Choose a reason for hiding this comment

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

We will need to be more granular than this. E.g only amp users can few amp data, etc.

@kbighorse
Copy link
Contributor

I think if the goal of this PR is to make review_status.feature redundant, AND you think that has been accomplished, then I would delete review_status.feature in this PR and then merge it (safe, since it's not merging to staging). If you want to address comments here so they're not lost, that is also possible. Otherwise, you could re-address them in the parent branch, I might recommend this to avoid polluting the purpose of this PR.

Once you merge this, you can continue negotiating the resultant data-visibility-and-review.feature file on its existing PR (and wait to merge that until @jirhiker returns), which you are already doing here. But I would merge this as soon as possible once the objective is achieved, which it looks to me, is.

@chasetmartin chasetmartin merged commit e9bb418 into data-visibility-review-feature Dec 19, 2025
4 checks passed
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.

5 participants