-
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
Restore twitter connector #15656
Restore twitter connector #15656
Conversation
5bd36d3
to
1f6fc0f
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.
Looks good to me! Why do we have changes in the date picker? Was there something that didn't work properly?
enabled: function (config, userData) { | ||
return userData.get('twitter').enabled && !!config.get('datasource_search_twitter'); | ||
enabled: function (_, userData) { | ||
return userData.get('twitter').enabled; |
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 is for editor, but I guess that it's good to have consistent code 😁
if (!this._configModel.get('datasource_search_twitter') || | ||
!this._userModel.get('twitter').enabled || | ||
!this._userModel.canCreateTwitterDataset()) { | ||
if (!this._userModel.get('twitter').enabled) { |
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 guess we could just return this._userModel.get('twitter').enabled
.
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 removed conditions and I didn't notice it
…ntials, not quota
1f6fc0f
to
2c8773f
Compare
Thx for the comments @jesusbotella Yeah, the date picker appeared broken, like this: I've applied your suggestions 🔝 |
Restore twitter connector for those who manage their own credentials
Steps for acceptance
You will see: