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

Processing tag changes #4

Closed
dmitriim opened this issue Aug 30, 2024 · 0 comments
Closed

Processing tag changes #4

dmitriim opened this issue Aug 30, 2024 · 0 comments

Comments

@dmitriim
Copy link
Owner

dmitriim commented Aug 30, 2024

Need to listen to following events:

  • a tag created (do nothing as we don't know yet if a tag will be used in a course)
  • a tag deleted
  • a tag renamed
  • a tag allocated to a course
  • a tag deallocated from the course

On allocated to course event:

  • figure out cohort the tag related to by cohort custom field type and id
  • create enrolment method for the cohort and a course that tag is linked to

On deallocated to course event:

  • figure out cohort the tag related to by cohort custom field type and id
  • delted enrolment method for the cohort and a course that tag is unlinked from

On created event:

  • create a new cohort and populate custom field type and id
  • create a dynamic cohort rule associated with this cohort
  • add a tag to a custom profile field
  • check if any courses have this tag linked (tags can be created while linking) and create enrolment method for the cohort.

On deleted event:

  • figure out cohort the tag related to by cohort custom field type and id
  • find and delete all enrolment methods associated with this cohort
  • find and delete dynamic cohort rule associated with this cohort
  • delete tag from custom profile field
  • delete cohort

On renamed event:

  • figure out cohort the tag related to by cohort custom field type and id
  • Cohort would have tag old name
  • Rename tag in custom profile field
  • Rename custom field value in all user data
  • Rename cohort
  • find and rename all enrolment methods associated with this cohort
  • rename dynamic cohort rule associated with this cohort
@dmitriim dmitriim changed the title Processing tag chnages Processing tag changes Aug 30, 2024
dmitriim added a commit that referenced this issue Sep 3, 2024
dmitriim added a commit that referenced this issue Sep 3, 2024
dmitriim added a commit that referenced this issue Sep 3, 2024
dmitriim added a commit that referenced this issue Sep 3, 2024
dmitriim added a commit that referenced this issue Sep 3, 2024
dmitriim added a commit that referenced this issue Sep 3, 2024
dmitriim added a commit that referenced this issue Sep 3, 2024
dmitriim added a commit that referenced this issue Sep 3, 2024
dmitriim added a commit that referenced this issue Sep 4, 2024
dmitriim added a commit that referenced this issue Sep 4, 2024
issue #4 issue #5 issue #6: processing new tags, courses and categories
dmitriim added a commit that referenced this issue Sep 5, 2024
dmitriim added a commit that referenced this issue Sep 5, 2024
dmitriim added a commit that referenced this issue Sep 5, 2024
dmitriim added a commit that referenced this issue Sep 6, 2024
dmitriim added a commit that referenced this issue Sep 6, 2024
dmitriim added a commit that referenced this issue Sep 6, 2024
dmitriim added a commit that referenced this issue Sep 8, 2024
dmitriim added a commit that referenced this issue Sep 8, 2024
dmitriim added a commit that referenced this issue Sep 8, 2024
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

No branches or pull requests

1 participant