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

adding in seperate status base URI #660

Merged
merged 11 commits into from
Aug 23, 2023
Merged

adding in seperate status base URI #660

merged 11 commits into from
Aug 23, 2023

Conversation

michaelneale
Copy link
Contributor

addressing: #640

@decentralgabe am I on the right track?

@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2023

Codecov Report

Merging #660 (c469402) into main (d23383b) will decrease coverage by 0.02%.
The diff coverage is 23.07%.

@@            Coverage Diff             @@
##             main     #660      +/-   ##
==========================================
- Coverage   25.55%   25.54%   -0.02%     
==========================================
  Files          56       56              
  Lines        6299     6311      +12     
==========================================
+ Hits         1610     1612       +2     
- Misses       4413     4421       +8     
- Partials      276      278       +2     
Files Changed Coverage Δ
config/config.go 30.40% <ø> (ø)
config/info.go 0.00% <0.00%> (ø)
pkg/server/server.go 70.76% <50.00%> (-0.61%) ⬇️

Copy link
Member

@decentralgabe decentralgabe left a comment

Choose a reason for hiding this comment

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

see comments

config/config.go Outdated Show resolved Hide resolved
config/info.go Outdated Show resolved Hide resolved
config/info.go Outdated Show resolved Hide resolved
config/info.go Outdated Show resolved Hide resolved
pkg/service/credential/status.go Outdated Show resolved Hide resolved
@michaelneale
Copy link
Contributor Author

@decentralgabe yeah made those changes, sorry didn't get to add tests specifically for this.

@michaelneale michaelneale marked this pull request as ready for review August 18, 2023 01:03
Copy link
Member

@decentralgabe decentralgabe left a comment

Choose a reason for hiding this comment

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

if you're able to test locally and verify that would be great - then feel free to merge

* tmp

* fix tests

* fix int test

* fix config
@@ -208,6 +209,13 @@ func CredentialAPI(rg *gin.RouterGroup, service svcframework.Service, webhookSer
// make sure the credential service is configured to use the correct path
config.SetServicePath(svcframework.Credential, CredentialsPrefix)

// allows for a custom URI to be used for status list credentials, if not set, we use the default path
if statusEndpoint != "" {
Copy link
Member

Choose a reason for hiding this comment

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

this needs to be initialized after the cred prefix is set

@decentralgabe decentralgabe merged commit ce5957a into main Aug 23, 2023
6 checks passed
@decentralgabe decentralgabe deleted the config_uris branch August 23, 2023 15:41
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.

3 participants