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
Fixes 143: Remove null fields from api responses #86
Conversation
8d9b917
to
018dd38
Compare
@@ -62,7 +62,7 @@ func (rc *RepositoryConfiguration) BeforeUpdate(tx *gorm.DB) (err error) { | |||
|
|||
func (rc *RepositoryConfiguration) DedupeVersions(tx *gorm.DB) (err error) { | |||
var versionMap = make(map[string]bool) | |||
var unique []string | |||
var unique = make(pq.StringArray, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this prevents distribution versions from returning null
018dd38
to
64761b7
Compare
Hi Rebase please. the ci.int.devshift check for this PR only failed on |
Because this contains openapi spec changes, we won't see the test pass in CI - the client generation is not dynamic. @swadeley can pull the openapi spec into our plugin ahead of merging this once we're confident in the content (above discussions about scope of nil values resolved). |
64761b7
to
94123bf
Compare
this needs a rebase. |
94123bf
to
6a42afe
Compare
/retest |
6a42afe
to
4b7edb2
Compare
9acef8b
to
bf17beb
Compare
bf17beb
to
ea82183
Compare
failure looks unrelated: swaggo/swag#1309 |
There were three fields I could find that were returning null:
2. The bulk create repository field, when there is an error.leaving out because it's not causing a CI failure and it's not a simple fixI changed these to:
2. empty object