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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: return only public articles for restricted query #140

Merged
merged 2 commits into from
Aug 26, 2022

Conversation

120EE0692
Copy link
Member

Solved or Linked Issues

Reference any and all issues solved and related to this pull request here. Mention if there are none.

Description and Changes

Please describe your pull request with all changes made.

Your checklist for this pull request

馃毃Please review the guidelines for contributing to this repository.

  • Make sure you are requesting to pull a work/topic/feature/bugfix branch (right side). Don't request your default branch!
  • Make sure you are making a pull request against the development (left side). Also you should start your branch off default branch and follow the branch naming guidelines.
  • Check the commit's or even all commits' message styles matches our requested structure.
  • Check your code additions will fail neither code linting checks nor unit test.
  • I have added necessary documentation and mentioned the related issues (if appropriate)
  • I have added the appropriate labels, requested a review from a repository manager and assigned myself to this pull request.

Post merge checklist

@120EE0692 120EE0692 added wip Work in Progress bugfix Some Bug was Fixed labels Jul 28, 2022
@120EE0692 120EE0692 self-assigned this Jul 28, 2022
@120EE0692 120EE0692 requested a review from rutajdash July 28, 2022 11:43
({ publishStatus, isInstituteRestricted }) =>
(_restritedPermission || !isInstituteRestricted) && (_unpublishedPermission || publishStatus)
);
return publicArticles;
Copy link
Member

Choose a reason for hiding this comment

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

@120EE0692 please document the changes being made and the reasons behind them. Also, please add an error to the response so the frontend may know that not all articles were given.

@rutajdash rutajdash changed the title chore: return public articles feat: return only public articles for restricted query Aug 26, 2022
@rutajdash rutajdash merged commit 977bb79 into Monday-Morning:main Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Some Bug was Fixed wip Work in Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants