-
Notifications
You must be signed in to change notification settings - Fork 650
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
[Oauth] Developers page #15031
[Oauth] Developers page #15031
Conversation
lib/assets/javascripts/new-dashboard/store/modules/apps/index.js
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/SettingsSidebar.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/SettingsSidebar.vue
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/pages/Apps/ConnectedApps.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/pages/Apps/ConnectedApps.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/pages/Apps/ConnectedApps.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/pages/Apps/ConnectedApps.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppCard.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppCard.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppCard.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppCard.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppCard.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/pages/Apps/ConnectedApps.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/SettingsSidebar.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/pages/Apps/ConnectedApps.vue
Outdated
Show resolved
Hide resolved
</ul> | ||
</div> | ||
</div> | ||
</div> |
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.
Parsing error: x-invalid-end-tag vue/no-parsing-error
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/components/Apps/AppForm.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/store/modules/apps/connected/index.js
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/pages/Apps/ConnectedApps.vue
Outdated
Show resolved
Hide resolved
lib/assets/javascripts/new-dashboard/pages/Apps/ConnectedApps.vue
Outdated
Show resolved
Hide resolved
…nto 418prod-oauth-dev
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.
Just minor things that we need to check out! :)
@@ -149,7 +149,7 @@ module.exports = Backbone.Model.extend({ | |||
_parseDatabaseSchemas: function (grants) { | |||
const schemas = _.find(grants, grant => grant.type === GRANT_TYPES.DATABASE).schemas; | |||
const publicSchema = _.find(schemas, schema => schema.name === 'public'); | |||
return publicSchema && publicSchema.permissions && publicSchema.permissions.indexOf('create') > -1; | |||
return !!(publicSchema && publicSchema.permissions && publicSchema.permissions.indexOf('create') > -1); |
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.
Why do you need to do that? 🤔
The comparison returns a boolean
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.
That's what I thought, but when I implemented the tests I saw that it returned undefined
when there is no publicSchema
(considering_.find
returns undefined
when not found)
view._onFormChanged(); | ||
|
||
expect(view._validationTooltip.clean).toHaveBeenCalled(); | ||
expect(view._validationTooltip).toBe(null); |
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 think we should check that the clean action is performed as well
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.$('.js-error').hide(); | ||
}, | ||
|
||
_onClickCreateCheckbox: function () { | ||
const createCheckbox = this._formView.getValue().datasets.create; |
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 don't really get what you're trying to do here. Isn't this change performed by backbone forms?
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 replaced it for an event on change this checkboxes (as we discussed) and it has to do with forcing SQL checkbox to be checked when CREATE is checked and uncheck CREATE if SQL is unchecked.
https://github.com/CartoDB/product/issues/418
https://github.com/CartoDB/product/issues/424