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-6063 feat: add ability to import data without PK #3188

Merged

Conversation

SychevAndrey
Copy link
Contributor

@SychevAndrey SychevAndrey commented Jan 10, 2025

Screen.Recording.2025-01-10.at.18.08.03-1.mov

@@ -103,7 +103,7 @@ export class DataImportBootstrap extends Bootstrap {
const presentation = context.get(DATA_CONTEXT_DV_PRESENTATION);
const isContainer = model.source instanceof ContainerDataSource;
return (
!model.isReadonly(resultIndex) &&
Copy link
Member

Choose a reason for hiding this comment

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

Fix is not clear for me. Why do we need this? Previous logic seems fine

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 isReadonly method uses hasRowIdentifier inside, which we should ignore. How do you see this c check here?

Copy link
Member

@devnaumov devnaumov Jan 10, 2025

Choose a reason for hiding this comment

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

We probably want to add new flag something like isAppendAllowed as adding new row from ui is not allowed but import is allowed that basically does the same

@SychevAndrey
Copy link
Contributor Author

So we discussed with @Wroud and agreed that the only option to add the hasRowIdentifier flag because it is used in different places, not only related to insertion. This is how it works now:
https://github.com/user-attachments/assets/df7ac05e-6aa0-4f83-8ab0-e82dfd97c6e5

@SychevAndrey SychevAndrey requested a review from Wroud January 13, 2025 10:09
@sergeyteleshev sergeyteleshev merged commit 3b0a4e7 into devel Jan 14, 2025
7 of 8 checks passed
@sergeyteleshev sergeyteleshev deleted the CB-6063-Add-ability-to-import-data-in-table-without-PK branch January 14, 2025 18:23
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.

6 participants