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

breaking: drop id from event_triggers table (fix #1840) #1857

Merged
merged 4 commits into from
Mar 25, 2019

Conversation

tirumaraiselvan
Copy link
Contributor

Description

An auto-generated trigger_id was being generated for each event_trigger. This trigger_id was causing problems as described in #1840 . We solve this by removing the trigger_id and using trigger_name as the identifier for the event_trigger everywhere.

Affected components

  • Server
  • Console
  • Docs

Related Issues

#1840

Solution and Design

Steps to test and verify

Limitations, known bugs & workarounds

This change is breaking in the following way:

  • There will no longer be an id key in the trigger section of the event payload i.e.
  "trigger": {
      "name": "<name-of-trigger>",
      "id": "<uuid>"
  }

changes to:

  "trigger": {
      "name": "<name-of-trigger>"
  }

@tirumaraiselvan tirumaraiselvan requested a review from 0x777 as a code owner March 25, 2019 09:26
@netlify
Copy link

netlify bot commented Mar 25, 2019

Deploy preview for hasura-docs ready!

Built with commit 81fe166

https://deploy-preview-1857--hasura-docs.netlify.com

@tirumaraiselvan tirumaraiselvan changed the title [breaking] drop id from event_triggers table [breaking] drop id from event_triggers table (close #1840) Mar 25, 2019
@tirumaraiselvan tirumaraiselvan changed the title [breaking] drop id from event_triggers table (close #1840) [breaking] drop id from event_triggers table (fix #1840) Mar 25, 2019
0x777
0x777 previously approved these changes Mar 25, 2019
@0x777 0x777 added the s/do-not-merge Do not merge this pull request to master label Mar 25, 2019
@tirumaraiselvan tirumaraiselvan added c/console Related to console c/server Related to server c/docs Related to docs labels Mar 25, 2019
@shahidhk shahidhk changed the title [breaking] drop id from event_triggers table (fix #1840) breaking: drop id from event_triggers table (fix #1840) Mar 25, 2019
@hasura-bot
Copy link
Contributor

Review app for commit 417113e deployed to Heroku: https://hge-ci-pull-1857.herokuapp.com
Docker image for server: hasura/graphql-engine:pull1857-417113e

@tirumaraiselvan tirumaraiselvan removed the s/do-not-merge Do not merge this pull request to master label Mar 25, 2019
Copy link

@rikinsk-zz rikinsk-zz left a comment

Choose a reason for hiding this comment

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

Fix Pending events page.

Breaks if you delete a trigger and then re-add it with another name.

edit: happens if you just create a trigger on a table/action that is already part of another trigger

@tirumaraiselvan
Copy link
Contributor Author

Check invocation logs page as well.

@hasura-bot
Copy link
Contributor

Review app for commit 81fe166 deployed to Heroku: https://hge-ci-pull-1857.herokuapp.com
Docker image for server: hasura/graphql-engine:pull1857-81fe166

@shahidhk shahidhk merged commit 3678119 into hasura:master Mar 25, 2019
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-1857.herokuapp.com is deleted

@danielcompton
Copy link
Contributor

Thanks, I've verified this patch fixes our issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/console Related to console c/docs Related to docs c/server Related to server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants