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

CB-4705 make data viewer model loaders more flexible #2690

Merged
merged 4 commits into from
Jun 11, 2024

Conversation

devnaumov
Copy link
Member

No description provided.

@devnaumov devnaumov requested review from Wroud and sergeyteleshev June 5, 2024 16:41
@devnaumov devnaumov self-assigned this Jun 5, 2024
@devnaumov devnaumov marked this pull request as ready for review June 5, 2024 16:41
@devnaumov devnaumov requested a review from Wroud June 6, 2024 13:24
@sergeyteleshev sergeyteleshev self-requested a review June 6, 2024 15:54
@@ -8,16 +8,17 @@
import { observer } from 'mobx-react-lite';
import { useCallback } from 'react';

import { Loader, TextPlaceholder } from '@cloudbeaver/core-blocks';
import { Loader, TextPlaceholder, useAutoLoad, useTranslate } from '@cloudbeaver/core-blocks';
Copy link
Contributor

Choose a reason for hiding this comment

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

pls remove unused loader here


model = dataViewerTableService.create(connectionInfo, node);
tab.handlerState.tableId = model.id;
model.source.setOutdated();
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need it to set it to outdated here? may be we should incapsulate this logic inside
dataViewerTableService.create() function?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think its better when create fn just create the model without any side effects

@Wroud Wroud merged commit 3d56701 into devel Jun 11, 2024
7 checks passed
@Wroud Wroud deleted the CB-4705-data-viewer-refactor branch June 11, 2024 13:52
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.

4 participants