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

fix: Return GrantAlreadyExists annotation #55

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

mgaeta
Copy link
Contributor

@mgaeta mgaeta commented Aug 27, 2024

Description

In the previous hotfix, we returned a empty grant list when Grant was called and the entitlement already existed.

This PR uses the newly created GrantAlreadyExists message as an outputted annotation.

TODO

  • Remove replace from go.mod.

@mgaeta mgaeta requested a review from ggreer August 27, 2024 18:49
@mgaeta mgaeta force-pushed the marcos/fix/grant-already-exists-3 branch from 3aa1802 to 2737551 Compare August 27, 2024 20:24
@mgaeta mgaeta force-pushed the marcos/ref/config-schema branch 2 times, most recently from 08ad3fb to cf8a971 Compare August 27, 2024 20:57
@mgaeta mgaeta force-pushed the marcos/fix/grant-already-exists-3 branch from 2737551 to dd68baf Compare August 27, 2024 20:58
"fmt"
"testing"

"github.com/conductorone/baton-sdk/pkg/test"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you need to go mod tidy && go mod vendor to fix this.

@mgaeta mgaeta force-pushed the marcos/fix/grant-already-exists-3 branch from dd68baf to adba34a Compare August 28, 2024 01:17
@ggreer ggreer merged commit f8edeb9 into marcos/ref/config-schema Aug 28, 2024
3 checks passed
@ggreer ggreer deleted the marcos/fix/grant-already-exists-3 branch August 28, 2024 18:54
ggreer pushed a commit that referenced this pull request Aug 28, 2024
* lint long lines

* Use new config schema

* Update README

* go mod

* add unit tests

* clean up CI warnings

* fix: Return `GrantAlreadyExists` annotation (#55)

* add new annotation

* move resource types to a file

* Moke identity store client an interface

* add unit tests

* fix tests
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.

2 participants