Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Showing backend validations that conflicts with frontend-validations (fixes #2412) (#2428) * Fixing the bug - we found some errors, but didn't set the visible to actually show those errors * Removing node traversal code and replacing it with more specialized selectors in ValidationStorePlugin, making the code more direct to the point * Revert "Removing node traversal code and replacing it with more specialized selectors in ValidationStorePlugin, making the code more direct to the point" This reverts commit 71852b9. --------- Co-authored-by: Ole Martin Handeland <[email protected]> * Fixing problems with removal of stale options (#2450) * Showing backend validations that conflicts with frontend-validations (fixes #2412) (#2428) * Fixing the bug - we found some errors, but didn't set the visible to actually show those errors * Removing node traversal code and replacing it with more specialized selectors in ValidationStorePlugin, making the code more direct to the point * Revert "Removing node traversal code and replacing it with more specialized selectors in ValidationStorePlugin, making the code more direct to the point" This reverts commit 71852b9. --------- Co-authored-by: Ole Martin Handeland <[email protected]> * Extracting all the important fixes from bug/stale-options2, but without the new extensive test setup that I'm not quite finished with (along with some remaining bugs I've found that nobody seems to have discovered so far). This quicker fix, if tests pass, should land in production before I'm done with the rest of the test suite and bugfixes. --------- Co-authored-by: Ole Martin Handeland <[email protected]> (cherry picked from commit 155e788) * Fixing hard fail on missing `componentRef` in Summary (#2448) * Showing backend validations that conflicts with frontend-validations (fixes #2412) (#2428) * Fixing the bug - we found some errors, but didn't set the visible to actually show those errors * Removing node traversal code and replacing it with more specialized selectors in ValidationStorePlugin, making the code more direct to the point * Revert "Removing node traversal code and replacing it with more specialized selectors in ValidationStorePlugin, making the code more direct to the point" This reverts commit 71852b9. --------- Co-authored-by: Ole Martin Handeland <[email protected]> * Adding option for rendering all the components when running all apps (will use this to catch errors when rendering). Fixing a mock error which caused the InstanceInformation component to fail when rendering. * Fixing removal of multiline comments (the comment start/end was removed, but not the content inside it) * Adding mock for IDataList so that rendering a plain List component does not fail when looking for data * Adding missing unique key * Adding proper validation for missing summary target instead of letting it fail in runtime (this affected multiple apps and broke them badly) * Ignoring empty files (better to delete them!) --------- Co-authored-by: Ole Martin Handeland <[email protected]> (cherry picked from commit 0904ce3) * Fixing missing nodes in repeating group when UUID has changed (#2453) * Making a mechanism for loading the 'hidden page with a specific test-case' pattern * Using the new function * Storing nodes in the context as soon as they've been added. This makes them available for a ['component', ...] lookup, meaning a hidden expression will not start off as broken and be fixed later, it will resolve correctly immediately * Returning undefined until we have enough information to know if a component is hidden * Waiting until there is no more state to commit in the node hierarchy before allowing items to be removed from the data model. This fixes an issue with loading new data from the backend via a CustomButton in the upcoming test-page for conflicting options. * No longer using a lax traversal selector, implementing a closestId() tool, as 'displayValue' looked into 'item', not 'layout' * Recreating the label saving as an effect-hook, comparing with the form data instead of a previous local value * Preventing a full overwrite of the form data in the data model when going to a hidden test-page * Removing node traversal * Relying a little less on the EffectProps * Making every effect an effect, cleaning up code and 'any' * Nested repeating group titles got their title skewed as if it was showing in full width * Committing what I've worked on until now. Need to context-switch and fix another bug. * The core of the remaining bug was that the row uuid changed, and the node generator was half-way between using row UUIDs and row indexes for everything. When pressing a CustomButton that replaces the rows (but importantly not the _number of rows_), the nodes should stay in place, but just update the UUID in the state. Previously, the entire row was removed, but nodes were not added back (as they were unchanged), so that mixup caused rows without nodes to appear. * Updating comments in the test * Removing a dead end * Fixing bug introduced when hidden expressions can run earlier: This was not wrapped in a condition, so hidden expressions lookup up component values would end up failing hard. * Adding missing form data * Making removal of stale options slower, but safer. This fixes the breaking cypress test. * Adding timeout cleanup --------- Co-authored-by: Ole Martin Handeland <[email protected]> * Fixing a bug causing infinite PATCH requests (#2457) * Changing from 'any' to 'unknown' and fixing the root of the problem * Adding a regression test in Cypress * Fixing data model assumptions --------- Co-authored-by: Ole Martin Handeland <[email protected]> * Fixes after merge --------- Co-authored-by: Ole Martin Handeland <[email protected]>
- Loading branch information