Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adrianmroz-allegro
Copy link
Contributor

No description provided.

@adrianmroz-allegro adrianmroz-allegro marked this pull request as ready for review January 26, 2023 15:18
@adrianmroz-allegro adrianmroz-allegro requested a review from a team as a code owner January 26, 2023 15:18
@adrianmroz-allegro adrianmroz-allegro marked this pull request as draft January 26, 2023 15:18
});
}

static newQuery(essence: Essence, { clientTimeout: timeout, oauth }: ClientAppSettings): Promise<Dataset> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably we could partially apply this function at the start of client application (we would eliminate passing appSettings every time) and distribute it with context. DataProvider would consume it from there.

static newQuery(essence: Essence, { clientTimeout: timeout, oauth }: ClientAppSettings): Promise<Dataset> {
const { dataCube: { name } } = essence;
const viewDefinitionVersion = DEFAULT_VIEW_DEFINITION_VERSION;
const viewDefinition = definitionConverters[viewDefinitionVersion].toViewDefinition(essence);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the future we could consider keeping ViewDefinition somewhere in state. But that would require to enforce synchronisation between view definition and essence objects (and hash?) - sounds non trivial.

timekeeper: Timekeeper; // TODO: check if needed
stage: Stage;
queryFactory: QueryFactory;
queryFactory: QueryFactory; // TODO: remove later
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's not needed, we pick query factory function on backend, based on visualisation name.

essence: Essence;
timekeeper: Timekeeper;
appSettings: ClientAppSettings;
timekeeper: Timekeeper; // TODO: check if needed
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is used to calculate "effective time filter". We need it to decide if we should refetch. For example, if data cube publishes new data and we have filter "Last 15 minutes", we should refetch.

@adrianmroz-allegro
Copy link
Contributor Author

In files without comments, we have very basic props drilling. Nothing interesting.

@github-actions
Copy link

⏱️ Lighthouse report

@github-actions
Copy link

size-limit report 📦

Path Size
build/public/main.js 1.74 MB (+0.04% 🔺)
build/public/polyfills.es5.js 42.71 KB (+0.01% 🔺)
build/public/dnd.es5.js 4.61 KB (0%)

@github-actions
Copy link

✅ Deployed successfully to: https://turnilo-feature-query-endpoint-gmbbyye42a-ew.a.run.app

@adrianmroz-allegro
Copy link
Contributor Author

Broke down into #1022 and few more ...

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