-
Notifications
You must be signed in to change notification settings - Fork 402
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
CB-6063 feat: add ability to import data without PK #3188
Conversation
@@ -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) && |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
removes isImportAllowed flag, adds hasRowIdentifier, uses it in place of forbidden actions
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: |
Screen.Recording.2025-01-10.at.18.08.03-1.mov