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

Bug/sc 33809/an author can add other learning objects #1876

Conversation

joaquinVill
Copy link

@joaquinVill joaquinVill commented Oct 4, 2024

This fixes an author being able to add learning objects as children that are not owned by that author. This also fixes the search mechanism that was not returning any learning objects. I also consolidated the search.service.ts files into one file instead of 2.

Story: https://app.shortcut.com/clarkcan/story/33809/an-author-can-add-other-learning-objects-as-children

Video:

  • learning Object "Wow this is awesome2" is a released learning object authored by Paige (who I am signed in as)
  • the rest of the learning objects that appear in the search are draft learning object authored by Paige
Screen.Recording.2024-10-09.at.2.24.35.PM.mov

@joaquinVill joaquinVill changed the base branch from main to clark-service-refactor October 4, 2024 19:50
Copy link
Contributor

@johngonz0 johngonz0 left a comment

Choose a reason for hiding this comment

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

This looks really good!

Comment on lines +82 to +84
registerChange() {
this.needsChange$.next();
}
Copy link
Member

Choose a reason for hiding this comment

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

Where is this called in the service?

Copy link
Author

Choose a reason for hiding this comment

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

Only reference is in the add-evaluator.component.ts file. Should I move this to that file since its not used anywhere else?
Screenshot 2024-10-10 at 2 16 51 PM

Copy link
Member

Choose a reason for hiding this comment

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

I would see who is subscribed to this and then make the call.

@joaquinVill joaquinVill merged commit 3991aa7 into clark-service-refactor Oct 17, 2024
1 check passed
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.

6 participants