Bug 13385 - toaster: issues in import layer when clicking 'add layer'
Summary: toaster: issues in import layer when clicking 'add layer'
Status: RESOLVED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium normal
Target Milestone: 3.1 M4
Assignee: David Reyna
QA Contact: Toaster default assignee
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-06-10 01:15 UTC by David Reyna
Modified: 2020-03-27 19:55 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Reyna 2019-06-10 01:15:34 UTC

    
Comment 1 David Reyna 2019-06-10 01:17:08 UTC
There were three issues in this one bug.

1) The Add Layer button allows empty layers

2) The internal XHR URL was wrong, which caused a hidden AJAX error and did not correctly complete the action nor disable the button after an add.

3) There was a race condition between typing in the dependent layer select text box (which would normally disable the add button), and the typeahead pull-down selection (which would normally enable the add button). This forced the user to select the typedahead layer twice.
Comment 2 David Reyna 2020-03-27 19:55:15 UTC
commit 1ca006c7b6036a6fbd40d8a2efaa6f41c0658479