-
-
Notifications
You must be signed in to change notification settings - Fork 149
correctly transfer username validation to auth0 #258
Conversation
As suggested in the README |
Hi, thanks for giving this a go! Regarding the tests failing on CI, its kind of expected as PRs wont have access to secrets. You should run them locally though and paste the output in the right section in the description. As this is a breaking change, we should add a migration so as to not break existing users. I wasn't able to see any changes to flattening/expanding. Do the right values get passed along to the sdk? I’m on mobile so I might have missed something. Cheers, |
The Auth0 Client supports During Testing I realised that the I created the corresponding mapping for validation, removed changes related to |
0a4c4c2
to
3a5d2f1
Compare
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.
Indeed the documentation seems to be wrong on this, I'll let the folks at Auth0 know.
Apart from reverting some changes, the only thing that needs to be done here is state migration. Otherwise we're good 🙂
@@ -81,8 +81,31 @@ var connectionSchema = map[string]*schema.Schema{ | |||
Elem: &schema.Resource{ | |||
Schema: map[string]*schema.Schema{ | |||
"validation": { | |||
Type: schema.TypeMap, | |||
Elem: &schema.Schema{Type: schema.TypeString}, | |||
Type: schema.TypeList, |
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 change will likely break state for some users. We should write a migration to safely migrate state from a map to a list.
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.
Thats going to take same time as Im new to Go and Terraform Provider Migrations. Will try to provide it within the next few days.
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.
I understand :) I’m here if you need any help.
For inspiration, you can see the migration of connections schema a while back.
I added the migration to move |
Here is an updated Test Output:
|
This PR has become stale as it has been open 30 days with no activity. |
Any updates on that PR? We need to configure those options too |
Thank you @etwillbefine, I've merged your changes in. Will cut a new release soon with the validation fix in place, cheers! |
Proposed Changes
Fixes #238
Acceptance Test Output
Community Note
Note: Contains breaking changes:
options.requires_username
tooptions.validation
options.validation