-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat(import): change column format during import #944
base: main
Are you sure you want to change the base?
Conversation
luka-nextcloud
commented
Mar 19, 2024
- Resolves: Import: Allow changing row format during import #837
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.
I tested it out, and the feature works. 😃 👍
Left some thoughts and points of confusion (for me, might be debatable 😅 )
6b7cde9
to
1c24c4d
Compare
1c24c4d
to
5114238
Compare
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.
Failing cypress tests are related and point to an issue in lib/Service/ImportService.php
.
5114238
to
212f3fd
Compare
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.
When importing the same file multiple times but selecting 'New Column' it will still import the data into the old column as long as the name stays the same.
Imported the same data 4 times here:
- for seeding the columns.
- i selected the 'Separated' column to be created anew. It created the column but did not insert the data.
- I change the file to have a different title for 'Separated'. Now the data ended up in the right place.
- I change the title for the new column (first one this time) to be 'Comma2' - this also worked.
So the only thing that does not seem to work is using the same title twice.
@max-nextcloud @juliushaertl Regarding the column title issue, currently, we do not restrict the duplicate column title. I think we should not allow to create columns with the same title on same table. What do you think? |
I think that would make sense to restrict, maybe we can when importing just add a number to the titles that have duplicates, e.g. having three columns called "title" will result in "title", "title (2)", "title (3)" like we do it in files |
212f3fd
to
60fc113
Compare
60fc113
to
c9660fd
Compare
Signed-off-by: Luka Trovic <[email protected]>
c9660fd
to
5a2d919
Compare
Are there any screenshots or quick videos for easier design review, or is all good on that side? :) |
@jancborchardt Please check the video. demo.webm |
@nextcloud/designers Could you have a look at this? |