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

uik: add basic CRUD operations #3847

Merged
merged 14 commits into from
May 6, 2024
Merged

uik: add basic CRUD operations #3847

merged 14 commits into from
May 6, 2024

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
7 checks passed
@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