Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Branding: support page_background with gradient #99

Merged
merged 5 commits into from
Apr 4, 2020
Merged

Branding: support page_background with gradient #99

merged 5 commits into from
Apr 4, 2020

Conversation

apricote
Copy link
Contributor

Closes #94

@apricote apricote requested a review from alexkappa February 22, 2020 16:24
@apricote
Copy link
Contributor Author

apricote commented Mar 5, 2020

@alexkappa I added some test for the custom Marshalling/Unmarshalling logic.

@apricote
Copy link
Contributor Author

apricote commented Apr 1, 2020

I rebased and force pushed to fix a conflict in management/management.gen.go. I invalidly added some new generated function from a different PR. Looks clean now.

@apricote
Copy link
Contributor Author

apricote commented Apr 3, 2020

@alexkappa Can you take a look at this? I would love to add support for this to the terraform-provider.

@alexkappa
Copy link
Contributor

Hi @apricote, sure thing. Sorry for the delay. I'll give it a look today.

Comment on lines 55 to 59
var data interface{} = struct {
Primary *string `json:"primary,omitempty"`
}{
Primary: bc.Primary,
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This structure is a little uneasy on the eyes, could we define an actual type for it internal to the function instead? Perhaps something similar to user identities:

https://github.com/go-auth0/auth0/blob/master/management/user.go#L105-L109

Copy link
Contributor

Choose a reason for hiding this comment

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

Primary: bc.Primary,
jsonPageBackgroundGradient: &jsonPageBackgroundGradient{
PageBackgroundGradient: bc.PageBackgroundGradient,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this instead be cast?

jsonPageBackgroundGradient: (*jsonPageBackgroundGradient)(bc.PageBackgroundGradient)

@apricote
Copy link
Contributor Author

apricote commented Apr 3, 2020

@alexkappa Thanks for your review. I updated my code and re-added the unit tests for the Marshalling/Unmarshalling that got lost when i force-pushed the last time.

@alexkappa alexkappa merged commit 2c27e5a into go-auth0:master Apr 4, 2020
@alexkappa
Copy link
Contributor

Thank you @apricote, much appreciated! I've merged this in.

@apricote apricote deleted the feature/branding-gradient-page-background branch April 9, 2020 15:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support page_background gradient for Branding
2 participants