-
Notifications
You must be signed in to change notification settings - Fork 13
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
holdings: improve editor preview rendering #413
Conversation
// only if the patterns changed | ||
distinctUntilChanged((a, b) => JSON.stringify(a.patterns) === JSON.stringify(b.patterns)), | ||
// cancel previous pending requests | ||
switchMap(modelValue => this._editorService.getHoldingPatternPreview( |
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.
switchMap
seems great and powerful !
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.
Exact! I put some comment on each, because I'm pretty sure that I will forget the meaning of each in few days...
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.
Commit message: emphasis the fact that this is for the holdings editor. For the title, I would simplify: holdings: improve editor preview rendering
or something like it.
* Reduces the number of http calls when the form is modified. Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
8c7ccf3
to
058d1d1
Compare
You are completely right. Thanks to read all our commit message and in particular my poor message quality! |
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.
Commit message approved.
@@ -43,34 +45,59 @@ export class HoldingEditorComponent { | |||
/** Current error message from the backend during the serial preview example if exists */ | |||
serialPreviewError = null; | |||
|
|||
/** */ |
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.
Comment is missing
Co-Authored-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch
Why are you opening this PR?
How to test?
Code review check list