Skip to content

Conversation

mastercactapus
Copy link
Member

@mastercactapus mastercactapus commented May 6, 2024

Description:
Adds setting and reading config for universal integration keys persisted in the DB.

Out of Scope:

  • Thorough validation of lengths and Expr expressions will be done in the next PR
  • Dedup and suppression windows will be added later

Describe any introduced API changes:

  • Integration keys now have a config field
  • updateKeyConfig mutation can now update the configuration of a universal integration key

Additional Info:
Use make start EXPERIMENTAL=univ-keys

Example queries:

query GET{
  integrationKey(id:"0924bdd6-da07-44b8-a4dc-0c8dffdb43d1"){
      id
      name
    type
      config {
        stopAtFirstRule
        suppressionWindows{start}
        rules{name}
        defaultActions{dest{type}}
      }
    }
  
}

mutation SET {
  updateKeyConfig(input:{
    keyID: "0924bdd6-da07-44b8-a4dc-0c8dffdb43d1",
    
    stopAtFirstRule: false
  })
}

Note: you will need to manually set the type of the key to universal in the db

@github-actions github-actions bot added size/l and removed size/xl labels May 6, 2024
@mastercactapus mastercactapus merged commit 7dead23 into master May 6, 2024
@mastercactapus mastercactapus deleted the uik-crud branch May 6, 2024 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants