Skip to content
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

Merged
merged 11 commits into from
May 8, 2020
Merged

Restore twitter connector #15656

merged 11 commits into from
May 8, 2020

Conversation

VictorVelarde
Copy link
Contributor

@VictorVelarde VictorVelarde commented May 7, 2020

Restore twitter connector for those who manage their own credentials

Steps for acceptance

You will see:

  • a successful import text
  • a working SHOW button
  • a table with results

Copy link
Contributor

@jesusbotella jesusbotella left a 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;
Copy link
Contributor

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) {
Copy link
Contributor

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.

Copy link
Contributor Author

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

@VictorVelarde VictorVelarde force-pushed the fix/restore-twitter-connector branch from 1f6fc0f to 2c8773f Compare May 8, 2020 09:18
@VictorVelarde
Copy link
Contributor Author

VictorVelarde commented May 8, 2020

Thx for the comments @jesusbotella

Yeah, the date picker appeared broken, like this:
image

I've applied your suggestions 🔝

@VictorVelarde VictorVelarde merged commit 26d35ef into master May 8, 2020
@jesusbotella jesusbotella deleted the fix/restore-twitter-connector branch May 8, 2020 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants