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

Implement PageEventHandlers #328

Merged
merged 11 commits into from
Aug 15, 2023
Merged

Implement PageEventHandlers #328

merged 11 commits into from
Aug 15, 2023

Conversation

APB9785
Copy link
Contributor

@APB9785 APB9785 commented Aug 10, 2023

Resolves #321

@APB9785 APB9785 requested a review from leandrocp August 10, 2023 22:06
@APB9785 APB9785 self-assigned this Aug 10, 2023
Copy link
Contributor

@leandrocp leandrocp left a comment

Choose a reason for hiding this comment

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

🎉

Creates a new page event handler and returns the page with updated `:event_handlers` association.
"""
@doc type: :page_event_handlers
@spec create_event_handler_for_page(Page.t(), %{name: binary(), code: binary()}) :: {:ok, Page.t()} | {:error, Changeset.t()}
Copy link
Contributor

Choose a reason for hiding this comment

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

spec also acting as doc is really useful 👍🏻

@APB9785 APB9785 merged commit 9d49166 into main Aug 15, 2023
@APB9785 APB9785 deleted the apb/event-handlers branch August 15, 2023 15:08
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.

Migrate embed Page.Event to a relational table PageEventHandlers
2 participants