-
Notifications
You must be signed in to change notification settings - Fork 436
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
Import from event feature #4533
Import from event feature #4533
Conversation
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.
Thanks, this is already looking really nice! I just left a few comments about things i noticed when having a quick look.
2d67d84
to
c24a184
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.
I've been manually checking most of the import conflicts and available conditions and this seems to be working well! 👍 I just added some notes below on the causes for features I wasn't able to import.
c24a184
to
d0ce61c
Compare
@plourenco Thank you for the review, it was a good catch indeed. |
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.
@plourenco |
d1526d7
to
37dbe31
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.
I can no longer reproduce the problem with the dialog, must have been a change I did while testing the last commit.
Thanks!! 🎉
37dbe31
to
8dfbae5
Compare
All updated now! I removed all |
indico/migrations/versions/20200804_1308_497c61b68050_fix_session_friendly_id_index.py
Outdated
Show resolved
Hide resolved
8dfbae5
to
1efd7c5
Compare
It would be an interesting idea if we added an indication on why some fields are greyed out, as in: "You can't import because you already made changes there" or "Only unmodified/empty modules of the event can be imported". Could even be something generic, it would be more user friendly. |
@plourenco that's a good point. I'll add a message. 👍 I think I should also remove from the list the modules that don't support importing at all, because having them greyed out might be confusing. |
1efd7c5
to
5018f2c
Compare
5018f2c
to
f1c5d02
Compare
I pushed some small fixes/improvements I noticed while testing. When trying to import the timetable from a larger event from the past (indico workshop 2.0) I'm currently getting an error about the timetable being inconsistent; I'll have a look and see if it's a quick fix, otherwise I'll ask you to look into it :p |
The timetable error happens because my target event was shorter. Should we make it a conflict in the timetable importer when the source event is longer than the target event? |
I added a commit doing just that. Importing the indico workshop event works fine now, I'll test with some other events but I think it's pretty much ready to be merged! |
After discussing with the team we thought the button next to clone is a bit too prominent so I moved it inside the cog menu: Not completely sure about the icon... but so far I couldn't find any better one. The import/export icons in icomoon don't look amazing either. If you have any good idea please let me know! |
c518c62
to
0add194
Compare
@meluru from our side everything is fine now and I think this PR is ready to be merged. Maybe you can have a quick look at the changes I made before I merge it? |
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.
very nice and useful feature :)
Co-authored-by: Adrian <adrian@planetcoding.net>
RHImportEventDetails is only for better UI, but we need those checks when actually running the import
It's only used in the first step, no need for it later
Depending on the timetable contents it would fail due to lack of space for everything.
It's not a feature which will be used that much compared to cloning and having it inside the menu avoids cluttering the management UI
0add194
to
6bb2b55
Compare
Closes #4518