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

Typing frontend-core fetch apis #15295

Merged
merged 64 commits into from
Jan 8, 2025
Merged

Typing frontend-core fetch apis #15295

merged 64 commits into from
Jan 8, 2025

Conversation

adrinr
Copy link
Collaborator

@adrinr adrinr commented Jan 3, 2025

Description

Typing all the fetch classes from frontend-core. These conversions still contain some anys and some code could be simplified and cleaned (specially around nulls).
As this is a quite critical change, the approach was to modify as little as possible. Once merged in master, we can tackle case by case, improving the quality of these classes if required.

Copy link

qa-wolf bot commented Jan 3, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/l labels Jan 3, 2025
@adrinr adrinr force-pushed the typing/fetch-apis branch from c7acad4 to 775ecf8 Compare January 7, 2025 15:57
@adrinr adrinr changed the title Typing/fetch apis Typing frontend-core fetch apis Jan 8, 2025
@@ -116,8 +115,11 @@
}
})
$: fields = bindings
.filter(x => arrayTypes.includes(x.fieldSchema?.type))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was causing the attachments and array fields to not be displayed properly on the dataprovider selector

@adrinr adrinr marked this pull request as ready for review January 8, 2025 15:14
@adrinr adrinr requested a review from a team as a code owner January 8, 2025 15:14
@adrinr adrinr requested review from mike12345567, aptkingston and samwho and removed request for a team and mike12345567 January 8, 2025 15:14
@adrinr adrinr force-pushed the typing/fetch-apis branch from 8c74a4b to 0784a95 Compare January 8, 2025 15:56
@adrinr adrinr requested a review from mike12345567 January 8, 2025 16:19
Copy link
Collaborator

@mike12345567 mike12345567 left a comment

Choose a reason for hiding this comment

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

LGTM - a lot of conversion!

@adrinr adrinr merged commit b50e2c7 into master Jan 8, 2025
20 checks passed
@adrinr adrinr deleted the typing/fetch-apis branch January 8, 2025 17:30
@github-actions github-actions bot locked and limited conversation to collaborators Jan 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/xl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants