-
Notifications
You must be signed in to change notification settings - Fork 479
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
Applab: fix screen import ID conflict between screen and element #58667
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.
Excellent write-up and clarity around the entire test matrix.
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.
Nice and +1 on well-written description! Just left a couple nits. Thanks!
Cannot import the following screens because they contain | ||
design elements with IDs already used in your existing | ||
Cannot import the following screens because their IDs or | ||
contained design element IDs are already used in your existing | ||
project. Fix the IDs in either project so they aren't | ||
duplicated across different screens before trying to import |
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 is not your change, but wondering if the wording could be updated.
'Fix the IDs in either project so that they aren't duplicated between the two projects before trying to import.'
We already ensure that element/screen IDs are not duplicated across screens within the same project.
@dancodedotorg - lmk what you think. Thanks!
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.
Took me a sec to follow so just to clarify, I think the specific proposed diff is:
"Fix the IDs in either project so they aren't duplicated across different screens between the two projects before trying to import"
This change makes sense to me though, updated! I think we can make an executive decision here unless Dan objects.
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 trust y'all - don't wait up on me
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.
Nice sleuthing!
Applab has a feature that allows you to import "screens" from other projects:
When using this feature, we have code that:
A recent curriculum update (more detail here) exposed the fact that we don't handle two other sets of potential conflicts:
The change here is to treat these conflicts the same way that we treat conflicts between individual elements (eg, a button in the existing project matches a button in the screen to import). I include a slight rewording of the error message to support these cases.
Updated experience
Conflicts between screen IDs and element IDs appear in list of IDs preventing import. In this case, the project trying to do the import has a button with the ID
screen1
, and the screen to import has the IDscreen1
Links
Testing story
I tested manually: