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

Started using device registration URI from patron authentication document #255

Merged
merged 8 commits into from
Nov 10, 2023

Conversation

nunommts
Copy link
Contributor

@nunommts nunommts commented Nov 8, 2023

What's this do?
This PR adds logic to use the device registration URI, if any, on the patron authentication document instead of having it hardcoded. It also changes the notification http calls to be done on a background thread.

Why are we doing this? (w/ JIRA link if applicable)
There's a feature request to implement this now the backend supports it and there's a bug report saying the notification http calls are being called in the main thread.

How should this be tested? / Do these changes have associated tests?
Open the Palace app in two different devices
Logout and login (or just log in if you were not authenticated) from any library (but it has to be the same) on both devices
With one account borrow a book that only has on copy
With the other account, reserve the same book
Again with the first account, return the book
Confirm a push notification is received in the second account

Dependencies for merging? Releasing to production?
None

Have you updated the changelog?
Yes

Has the application documentation been updated for these changes?
No

Did someone actually run this code to verify it works?
Tested by @nunommts

@nunommts nunommts requested a review from io7m November 8, 2023 17:40
@io7m
Copy link
Contributor

io7m commented Nov 9, 2023

Is this actually still relevant? The platform has been updated multiple times since this was submitted.

@nunommts
Copy link
Contributor Author

nunommts commented Nov 9, 2023

@io7m hmm, you're right. If there's a more recent version of the platform then this is not needed. However, I'll use and adapt this for my next PR :D

@nunommts nunommts changed the title Updated libraries version Started using device registration URI from patron authentication document Nov 9, 2023
@nunommts
Copy link
Contributor Author

nunommts commented Nov 9, 2023

@io7m it's ready for review 😄

Copy link
Contributor

@io7m io7m left a comment

Choose a reason for hiding this comment

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

Seems good, just one small adjustment needed.

@nunommts nunommts requested a review from io7m November 10, 2023 13:57
Copy link
Contributor

@io7m io7m left a comment

Choose a reason for hiding this comment

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

🚀

@nunommts nunommts merged commit 19c4d00 into main Nov 10, 2023
1 check passed
@nunommts nunommts deleted the feature/update-libraries-version branch November 10, 2023 14:06
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