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

APIGOV-DG000 - fix ARD creation #818

Merged
merged 5 commits into from
Aug 12, 2024
Merged

APIGOV-DG000 - fix ARD creation #818

merged 5 commits into from
Aug 12, 2024

Conversation

dgghinea
Copy link
Collaborator

@dgghinea dgghinea commented Aug 8, 2024

Adds a flag that ignores creating ARD and CRDs based on the spec provided in the serviceBody

jcollins-axway
jcollins-axway previously approved these changes Aug 8, 2024
@@ -117,6 +117,9 @@ func (s *ServiceBody) GetAccessRequestDefinition() *management.AccessRequestDefi
}

func (s *ServiceBody) createAccessRequestDefinition() error {
if !s.uniqueARD {
return nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you log s.ardName before you return since we are bailing right out

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thinking debug level? Since this would happen a lot I think Warn and Info would not apply. More so since this only happens when the user said the ard is not unique for this api.

Copy link
Collaborator

Choose a reason for hiding this comment

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

that's reasonable... i'm down with that

sbolosan
sbolosan previously approved these changes Aug 9, 2024
jcollins-axway
jcollins-axway previously approved these changes Aug 9, 2024
@dgghinea dgghinea dismissed stale reviews from jcollins-axway and sbolosan via 93dcec1 August 12, 2024 07:41
@dgghinea dgghinea merged commit daed9cf into main Aug 12, 2024
3 checks passed
@dgghinea dgghinea deleted the APIGOV-DG000 branch August 12, 2024 14:10
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.

4 participants