-
Notifications
You must be signed in to change notification settings - Fork 21
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
Notes of schools and authors #1431
Conversation
Deployed to https://test-deployment-pr-1431.herokuapp.com/ |
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.
looks straight forward and works well 💯
In the long run, connected to #1056 we may want to further generalize the linking and indexing but this is awesome as a quick win!
this.entity = config.entity; | ||
const entityType = this.entity.getType(); | ||
this.noteProperty = [...Note.schema.keys()].find( | ||
(prop) => Note.schema.get(prop).additional === entityType | ||
); |
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.
impressive solution 😃 took me a second to even understand why this works
closes #1423 ? |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
🎉 This PR is included in version 3.10.2-master.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 3.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
see #1423
The current
NotesOfChild
component only allows to show notes that are linked to a child.This component has been made more abstract to also support notes of a school or notes of an author.
Currently the component is still called
NotesOfChild
. This name should be changed in the future to something likeRelatedNotes
. I have left it for now because I want to get this PR out fast and a change of the name would require a migration of existing configs.Visible/Frontend Changes
--
Architectural/Backend Changes
NotesOfChild
can be used in school and user details components