You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We reviewed changes in 3690446...f5db6ec on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
The reason will be displayed to describe this comment to others. Learn more.
Approve. Checked live in the form builder on Lite master plus this branch, with a 37-field form that has "Load and save form builder page with AJAX" turned on (so fields come in through frm_load_field batches).
Batched definitions: all 37 fields loaded, no placeholders left, no console errors. I sent the same 12-field batch to frm_load_field three ways: with no known_* params the response had 25 tooltips and 6 select option lists (as before); with the page's current known keys it had 0 and 0 and was about 9 KB smaller; with junk (zzz,,,, ../x) it was identical to the no-params response. So older or malformed requests are safe.
Fields from later batches still work: the settings panel of the last field (id 59) opened with its selects hydrated (0 left unhydrated, 0 empty) and its tooltips titled.
Bulk edit, now created lazily: the dialog was already built by the idle callback, opened from the field settings with the options filled in, and Update Options closed it and added the new option to the field.
The committed js/formidable_admin.js bundle contains known_tooltips, known_select_options and requestIdleCallback, so it matches the source.
The DeepSource PHP failure (assertSame() undefined) is a false positive: the test class extends FrmUnitTest and other tests in the same folder call assertSame.
Not run: the two new PHPUnit tests (CI's PHPUnit is skipped on this head; I ran the equivalent requests above instead). I did not test the case where Bulk Edit is clicked before the idle callback runs, but both paths call the same initializeBulkOptionsOverlay().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.