-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add signInWithNewPassword GraphQL API #291
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #291 +/- ##
==========================================
+ Coverage 69.42% 69.94% +0.52%
==========================================
Files 67 67
Lines 14037 14274 +237
==========================================
+ Hits 9745 9984 +239
+ Misses 4292 4290 -2 ☔ View full report in Codecov by Sentry. |
CHANGELOG.md
Outdated
@@ -68,6 +68,9 @@ Versioning](https://semver.org/spec/v2.0.0.html). | |||
- Added a `language` field to the `Account`. Consequently, the `account` and | |||
`accountList` API responses now include this field. The `insertAccount` and | |||
`updateAccount` GraphQL API endpoints are also updated to support the field. | |||
- Added `common_sign-in_logic` to handle `sign-in` GraphQL API logic. |
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.
This is not necessary because the method is not for users.
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.
I'll delete it.
ed652fa
to
97ffb90
Compare
a5c9935
to
5548e55
Compare
CHANGELOG.md
Outdated
@@ -68,6 +68,7 @@ Versioning](https://semver.org/spec/v2.0.0.html). | |||
- Added a `language` field to the `Account`. Consequently, the `account` and | |||
`accountList` API responses now include this field. The `insertAccount` and | |||
`updateAccount` GraphQL API endpoints are also updated to support the field. | |||
- Added `signInWithNewPassword` GraphQL API for signing in with a new password. |
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.
This is a new API, so should be included in the section "Added".
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.
Since the signIn
has been changed, it should be documented.
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.
I'll change it.
e72ae31
to
6ebe11b
Compare
e4320fd
to
acbb168
Compare
When reseting the admin's password, we need to reset the |
fb6cc77
to
17d7dc0
Compare
@sehkone I know we are still in pr-review stage for this PR, but I think merging PR would require implement new UX flow and design in the client side. So I would like to suggest in advance, that we might merge this PR after we release the upcoming review-web version. |
Yes. I won't merge this until what is required is done. |
17d7dc0
to
8912b70
Compare
8912b70
to
a743b94
Compare
a743b94
to
f6c36ab
Compare
CHANGELOG.md
Outdated
### Added | ||
|
||
- Added `signInWithNewPassword` GraphQL API for signing in with a new password. | ||
|
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.
Could you take a look at this? It indicates that unnecessary spaces are included, which suggests you may need to check your editor setup, as VS Code shouldn't have done this if it were set up properly.
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.
I've completed the modification.
Thank you.
f6c36ab
to
29f4dfd
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.
I'd like to ask you for a rebase please.
src/graphql/account.rs
Outdated
/// | ||
/// Returns `Err` if the password or the new password are invalid, the access | ||
/// doesn't originate from a permitted IP address, or the number of sessions exceeds the | ||
/// maximum limit. |
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.
Maybe we only need a single space?
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.
I'll change it.
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.
Could you check this please?
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.
Modification completed.
Thank you for your kindness in describing your PR. I would like to suggest a small update to align with our convention. Please consider changing
to
|
### Added | ||
|
||
- Added `signInWithNewPassword` GraphQL API for signing in with a new password. | ||
|
||
### Changed | ||
|
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.
In line with this comment, I noticed that the signIn
API logic has been modified. As this logic impacts end users, I think it seems beneficial to explicitly include this change in the changelog to keep our users informed. I’d like to suggest adding a line in the Changed section, perhaps like the following:
- The
signIn
GraphQL API now returns an error if the account was never signed in before. This change is part of enhancing account security by requiring all users to update their passwords upon their first signing in.
29f4dfd
to
f08c5ef
Compare
I don't see any conflicts with the main branch. Why would you think this needs a rebase? |
The representation, such as |
One more thing: backticks should be used to quote elements that belong to another context. When we search for a quoted string in the original text, it must appear exactly as quoted. There is no |
When I commented, it was conflicting. |
f08c5ef
to
01e777c
Compare
Commit message modification completed. |
To clarify further: while backticks are typically used to quote code elements, they can also be applied to any string that might or will appear in a code context. In other words, backticks doesn’t necessarily imply that the enclosed string must be searchable. However, in this CHANGELOG.md, it’s assumed that it should be searchable. |
Thanks for the detailed explanation and guide. |
01e777c
to
389bd6c
Compare
CHANGELOG.md
Outdated
### Added | ||
|
||
- Added `signInWithNewPassword` GraphQL API for signing in with a new password. | ||
- The `signIn` GraphQL API now returns an error if the account was never signed |
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.
I think we need to break the line before the word "signed". Could you check your IDE settings?
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.
I checked for modification using the cmd + q command in the VSCode IDE.
thank you.
389bd6c
to
16a9872
Compare
Could you rebase please? |
Close #14 Changed `signIn` GraphQL API logic. - Returns `Err` if `last_signin_time` of `account` is `None`.
16a9872
to
f59e8ca
Compare
|
Close #14
Changed
signIn
GraphQL API logic.Err
iflast_signin_time
ofaccount
isNone
.