-
Notifications
You must be signed in to change notification settings - Fork 91
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
User preferences support #1317
User preferences support #1317
Conversation
9fbf9b9
to
6bdf70b
Compare
Codecov Report
@@ Coverage Diff @@
## main #1317 +/- ##
==========================================
+ Coverage 90.52% 90.66% +0.13%
==========================================
Files 98 100 +2
Lines 21480 22217 +737
==========================================
+ Hits 19445 20143 +698
- Misses 1521 1544 +23
- Partials 514 530 +16
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
d1a5411
to
1c7eeaf
Compare
1c7eeaf
to
45fba7d
Compare
d937585
to
82aa1ff
Compare
4824d05
to
2c640f8
Compare
de78ebc
to
c130160
Compare
eb0e568
to
826c39b
Compare
826c39b
to
3fee8f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix my last comment, and the linter.
Otherwise it looks good from my side.
Initial code was contributed by Bogdan BIVOLARU <104334+bogdanbiv@users.noreply.github.com> Moved implementation from a separate db to repodb by Andrei Aaron <aaaron@luxoft.com> Not done yet: - run/test dynamodb implementation, only boltdb was tested - add additional coverage for existing functionality - add web-based APIs to toggle the stars/bookmarks on/off Initially graphql mutation was discussed for the missing API but we decided REST endpoints would be better suited for configuration Signed-off-by: Andrei Aaron <aaaron@luxoft.com> feat(userdb): complete functionality for userdb integration - dynamodb rollback changes to user starred repos in case increasing the total star count fails - dynamodb increment/decrement repostars in repometa when user stars/unstars a repo - dynamodb check anonymous user permissions are working as intendend - common test handle anonymous users - RepoMeta2RepoSummary set IsStarred and IsBookmarked Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> feat(userdb): rest api calls for toggling stars/bookmarks on/off Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> test(userdb): blackbox tests Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> test(userdb): move preferences tests in a different file with specific build tags Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> feat(repodb): add is-starred and is-bookmarked fields to repo-meta - removed duplicated logic for determining if a repo is starred/bookmarked Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
3fee8f5
to
b862f99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What type of PR is this?
Which issue does this PR fix:
Closes #592
Closes #662
Closes #746
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:
Automation added to e2e:
Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.