-
Notifications
You must be signed in to change notification settings - Fork 16
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
Rule-based playlists #345
Rule-based playlists #345
Conversation
Review status: 0 of 60 files reviewed at latest revision, 1 unresolved discussion. src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule-parser.service.ts, line 22 at r6 (raw file):
+@esakal where should I move this metadata profile loading. It's needed to parse the server value of advanced filter to the application format. The reverse parsing is done in the data-provider service as we discussed Comments from Reviewable |
Reviewed 29 of 66 files at r1, 4 of 31 files at r2, 17 of 35 files at r3, 11 of 18 files at r5, 7 of 8 files at r6, 1 of 2 files at r7, 2 of 2 files at r8. a discussion (no related file): a discussion (no related file): src/app-config/index.ts, line 186 at r8 (raw file):
shouldn't it be 50? src/applications/content-entries-app/entry/entry-store.service.ts, line 346 at r8 (raw file):
wasn't it taken from default routing to entry? why is this needed? src/applications/content-playlists-app/content-playlists-app.routes.ts, line 26 at r8 (raw file):
I'm not sure how it works for you, maybe the second is overriding the previous? anyhow I assume you did it for the route to key mapping? src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 48 at r8 (raw file):
should it be valid if was not activated? if not activated how do you allow saving it even if no rules were found? consider checking src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 57 at r8 (raw file):
is this the default value? if so it should be set when loading the data and then here it should always be available src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 90 at r8 (raw file):
how do you handle errors if you are asking for result with default value? src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 106 at r8 (raw file):
why do you manage loading and error state both in the super and in this class? src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 171 at r8 (raw file):
ActionSelected is part of the component logic. it is ok to leave it here if you although it is better to keep component logic in the component.ts and not in its service. the src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 187 at r8 (raw file):
shouldn't you handle only add new rule? because existing rules already has selection id and are part of rules src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 190 at r8 (raw file):
can you elaborate when this use case is relevant? src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content.component.ts, line 34 at r8 (raw file):
are you missing .cancelOnDestroy? src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content.component.ts, line 43 at r8 (raw file):
I understand the use case but since this is the first time I'm seeing such an implementation I'm wondering if this is needed, which use cases does it address? src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content.component.ts, line 67 at r8 (raw file):
see my comments in the service src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-entries-data-provider.service.ts, line 62 at r8 (raw file):
consider renaming src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule-parser.service.ts, line 22 at r6 (raw file): Previously, diamond-darrell wrote…
It is fine to use this request here since src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule-parser.service.ts, line 31 at r8 (raw file):
are you sure you need the src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule.component.ts, line 22 at r8 (raw file):
I understand that this logic is relevant for editing while the defaults are for new rule? consider moving this logic into
src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule.component.ts, line 31 at r8 (raw file):
is this operation async or operation that can fail? if so it should be managed as we usually are doing (loading, errors and retries). if you will decide to use a src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule.component.ts, line 113 at r8 (raw file):
is this an async operation or operation that can fail? if so you should manage the flow (loading, error, retry) src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rules-table/playlist-rules-table.component.ts, line 55 at r8 (raw file):
we moved the loading/errors logic in other tables to the list component. please do the same with this table. once the refactoring is complete I think you will not needed to use src/applications/content-playlists-app/playlist/playlist-details/playlist-details.component.ts, line 24 at r8 (raw file):
ensure that src/shared/content-shared/playlist-rule.interface.ts, line 1 at r8 (raw file):
Is this file in src/shared/content-shared/entries/pipes/entries-total-duration.pipe.ts, line 8 at r8 (raw file):
since this action might be performance heavy, check if you can calculate this value in the relevant component instead and bind to a property src/shared/kmc-shared/playlist-creation/create-new-playlist.event.ts, line 9 at r8 (raw file):
check if you need some further cleanups Comments from Reviewable |
Review status: 55 of 60 files reviewed at latest revision, 26 unresolved discussions. a discussion (no related file): Previously, esakal (Eran Sakal) wrote…
OK src/app-config/index.ts, line 186 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
probably copy-paste from another place, OK src/applications/content-entries-app/entry/entry-store.service.ts, line 346 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
I don't remember exactly, but when we discussed routing between sections for playlists, there was some issue with default tab for manual and rule-based playlist and along with this discussion you said me to set hardcoded value for entry's section to "metadata". src/applications/content-playlists-app/content-playlists-app.routes.ts, line 26 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
I don't get it src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 48 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 57 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 90 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 106 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 171 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 187 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
why? I'm using src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 190 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
when rule isn't new I need to update it in the list src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content.component.ts, line 34 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content.component.ts, line 43 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
if you select a couple of entries then hit save, after data is loaded the selection is still shown, but it shouldn't src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content.component.ts, line 67 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-entries-data-provider.service.ts, line 62 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule-parser.service.ts, line 22 at r6 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule-parser.service.ts, line 31 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule.component.ts, line 22 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
I'm not sure I understand it correctly, I can move only src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule.component.ts, line 31 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule.component.ts, line 113 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rules-table/playlist-rules-table.component.ts, line 55 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-details/playlist-details.component.ts, line 24 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
it is, the subscribe function won't be invoked if data is not defined or null... src/shared/content-shared/playlist-rule.interface.ts, line 1 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
by mistake, OK src/shared/content-shared/entries/pipes/entries-total-duration.pipe.ts, line 8 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/shared/kmc-shared/playlist-creation/create-new-playlist.event.ts, line 9 at r8 (raw file): OK Comments from Reviewable |
Reviewed 1 of 31 files at r2, 1 of 36 files at r3, 1 of 5 files at r9, 21 of 21 files at r10. a discussion (no related file): Previously, esakal (Eran Sakal) wrote…
I will check it tomorrow src/applications/content-playlists-app/content-playlists-app.routes.ts, line 26 at r8 (raw file): Previously, diamond-darrell wrote…
you provided the same path token 'content' to two different routing. I don't understand how it works. Instead you should have a single content component and internally use *ngSwitch or *ngIf to handle rule based and manual list accordingly. wdyt? src/applications/content-playlists-app/playlist/playlist-store.service.ts, line 153 at r10 (raw file):
you are setting the totalResults while you load the playlist, is this according to the PRD src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 190 at r8 (raw file): Previously, diamond-darrell wrote…
ok, If I understand correctly you are providing a new rule instance every time you edit a rule? if so I understand what you did here. if this is the same instance then it doesn't add to the table. We can discuss about it if I wasn't that clear. src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content.component.ts, line 43 at r8 (raw file): Previously, diamond-darrell wrote…
I will check it tomorrow src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule.component.ts, line 22 at r8 (raw file): Previously, diamond-darrell wrote…
Let's discuss Comments from Reviewable |
Review status: 59 of 61 files reviewed at latest revision, 6 unresolved discussions. src/applications/content-playlists-app/content-playlists-app.routes.ts, line 26 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
I'm already doing it in the 'holder' component, this duplication was needed to define different keys for different types of playlists. But I understand your doubts about this approach, despite the fact it works fine, it can confuse other developers. So, how about to define keys array and handle array value in the mapping? src/applications/content-playlists-app/playlist/playlist-store.service.ts, line 153 at r10 (raw file): Previously, esakal (Eran Sakal) wrote…
I've moved it from onDataSaving hook here, as you suggested me and yes, it's according to the PRD src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content-widget.service.ts, line 190 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
kinda, it's a copy of original rule with modified fields, let's discuss because I'm not sure what you want me to change here 🙂 src/applications/content-playlists-app/playlist/playlist-content/rule-based/rule-based-content.component.ts, line 43 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
OK src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule.component.ts, line 22 at r8 (raw file): Previously, esakal (Eran Sakal) wrote…
Let's 🙂 Comments from Reviewable |
Review status: 59 of 61 files reviewed at latest revision, 7 unresolved discussions. src/applications/content-playlists-app/playlist/playlist-store.service.ts, line 185 at r11 (raw file):
+@esakal here I'm handling array of keys for manual and rulebased content section Comments from Reviewable |
Review status: 58 of 61 files reviewed at latest revision, 1 unresolved discussion. src/applications/content-playlists-app/playlist/playlist-content/rule-based/playlist-rule/playlist-rule.component.ts, line 22 at r8 (raw file): Previously, diamond-darrell wrote…
OK Comments from Reviewable |
Reviewed 2 of 2 files at r11, 1 of 1 files at r12. Comments from Reviewable |
Reviewed 27 of 67 files at r1, 2 of 31 files at r2, 11 of 36 files at r3, 7 of 18 files at r5, 3 of 8 files at r6, 1 of 5 files at r9, 18 of 21 files at r10, 2 of 2 files at r11, 1 of 1 files at r12. a discussion (no related file): Comments from Reviewable |
Review status: 59 of 61 files reviewed at latest revision, 1 unresolved discussion. a discussion (no related file): Previously, amirch1 (Amir Chervinsky) wrote…
Fixed Comments from Reviewable |
Reviewed 2 of 2 files at r13. Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. a discussion (no related file): Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks failed. a discussion (no related file): Previously, amirch1 (Amir Chervinsky) wrote…
Comments from Reviewable |
Reviewed 3 of 67 files at r1, 8 of 10 files at r14. Comments from Reviewable |
PR information
What kind of change does this PR introduce? (check one with "x")
What is the current behavior? (You can also link to an open issue here)
What is the new behavior?
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information
Where should the reviewer start?
How should this be manually tested?
Any background context you want to provide?
This change is