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

UpdateFragment/ ListFragments - add visibility parameter #245

Merged
merged 10 commits into from
Jul 17, 2024

Conversation

piokasar
Copy link
Contributor

@piokasar piokasar commented Jul 15, 2024

  • Added optional fragmentVisibility list in listFragments
  • Added optional fragmentVisibility in updateFragment

@piokasar piokasar requested a review from a team as a code owner July 15, 2024 16:18
@piokasar piokasar requested review from njooma and purplenicole730 and removed request for njooma and purplenicole730 July 15, 2024 16:18
@piokasar piokasar force-pushed the add-visibility-field branch from 980fc35 to 9567f81 Compare July 15, 2024 18:09
@piokasar piokasar force-pushed the add-visibility-field branch 8 times, most recently from 41427b7 to 97ba780 Compare July 15, 2024 19:55
Future<List<Fragment>> listFragments(String organizationId, bool showPublic) async {
final request = ListFragmentsRequest()
Future<List<Fragment>> listFragments(String organizationId, bool showPublic, {List<FragmentVisibility>? fragmentVisibility}) async {
final request = ListFragmentsRequest(fragmentVisibility: fragmentVisibility)
Copy link
Member

Choose a reason for hiding this comment

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

Can you please switch this to the ..fragmentVisiblity = fragmentVisibility syntax like the other options?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, actually should be good to go now - had to use addAll since it's an iterable

@piokasar piokasar force-pushed the add-visibility-field branch 2 times, most recently from 1251efb to 3916636 Compare July 16, 2024 18:06
@piokasar piokasar force-pushed the add-visibility-field branch from 3916636 to eb2d9f3 Compare July 16, 2024 18:12
@piokasar piokasar force-pushed the add-visibility-field branch from eb2d9f3 to 2feec74 Compare July 16, 2024 18:16
@piokasar piokasar requested a review from njooma July 17, 2024 16:33
@piokasar piokasar merged commit 41a4a43 into main Jul 17, 2024
4 checks passed
@piokasar piokasar deleted the add-visibility-field branch July 17, 2024 16:37
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.

3 participants