[WIP]: Optimal version for allowing collapsed entries to fetch data on request

Review Request #11889 — Created Dec. 6, 2021 and updated

cynthia
Review Board
master
reviewboard

This is a modified version of the working lazy collapsed project
based on Christian's suggestions in the review request here:
https://reviews.reviewboard.org/r/11886/.

The only difference is that instead of checking the entry's html attributes,
we keep a state on the entry model indicating if the entry has been loaded,
which would be part of the initial model data on the page. If loaded,do
nothing.If not then load it by calling the function "fetchEntryUpdates"
which can trigger an immediate update to load the content of an entry.

TODO: Set the "loaded" state of an expand entry to true.

TODO: Require writing tests for entry model for the newly "loaded" added state.

Summary Author
add console log for debug
Your Name
load the collapsed entry info, finally get it working
Your Name
finalize project
Your Name
code clean up
Your Name
remove white spaces
Your Name
remove white space
Your Name
review bot issues
Your Name
review bot issues
Your Name
remove white spaces
Your Name
remove white spaces
Your Name
Address the comments and issues opened by David on the review request
Your Name
remove white spaces
Your Name
remove white spaces
Your Name
change test
Your Name
address issues opened
Your Name
remove space
Your Name
initial setup for new loaded state in entry model
Your Name
change comment
Your Name
cynthia
cynthia
Review request changed

Commits:

Summary Author
-
add console log for debug
Your Name
-
load the collapsed entry info, finally get it working
Your Name
-
finalize project
Your Name
-
code clean up
Your Name
-
remove white spaces
Your Name
-
remove white space
Your Name
-
review bot issues
Your Name
-
review bot issues
Your Name
-
remove white spaces
Your Name
-
remove white spaces
Your Name
-
Address the comments and issues opened by David on the review request
Your Name
-
remove white spaces
Your Name
-
remove white spaces
Your Name
-
change test
Your Name
-
address issues opened
Your Name
-
remove space
Your Name
-
initial setup for new loaded state in entry model
Your Name
+
add console log for debug
Your Name
+
load the collapsed entry info, finally get it working
Your Name
+
finalize project
Your Name
+
code clean up
Your Name
+
remove white spaces
Your Name
+
remove white space
Your Name
+
review bot issues
Your Name
+
review bot issues
Your Name
+
remove white spaces
Your Name
+
remove white spaces
Your Name
+
Address the comments and issues opened by David on the review request
Your Name
+
remove white spaces
Your Name
+
remove white spaces
Your Name
+
change test
Your Name
+
address issues opened
Your Name
+
remove space
Your Name
+
initial setup for new loaded state in entry model
Your Name
+
change comment
Your Name

Diff:

Revision 2 (+2416 -1942)

Show changes

Checks run (2 succeeded)

flake8 passed.
JSHint passed.
Loading...