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

Improve Source types #687

Merged
merged 2 commits into from
May 25, 2023
Merged

Improve Source types #687

merged 2 commits into from
May 25, 2023

Conversation

VictorVelarde
Copy link
Contributor

  • id for Source is mandatory
  • credentials: it can be omitted (and provided by setDefaultCredentials in deck.gl/carto)
  • sqlParameters: it can be omitted

connection?: string;
credentials: Credentials;
queryParameters: QueryParameters;
connection: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

mandatory, but it was missing!

@@ -7,10 +7,9 @@ import { AnyAction, Reducer } from 'redux';
import { Feature, Polygon, MultiPolygon } from 'geojson';

type Source = SourceProps & {
id: string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

now id is in SourceProps

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The rest in file are just formatter changes

@coveralls
Copy link
Collaborator

coveralls commented May 24, 2023

Pull Request Test Coverage Report for Build 5081508370

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 72.309%

Totals Coverage Status
Change from base Build 5079454198: 0.0%
Covered Lines: 2082
Relevant Lines: 2655

💛 - Coveralls

Copy link
Contributor

@bbecquet bbecquet left a comment

Choose a reason for hiding this comment

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

LGTM

@VictorVelarde VictorVelarde merged commit 2d681d7 into master May 25, 2023
@VictorVelarde VictorVelarde deleted the fix-types branch May 25, 2023 17:38
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.

3 participants