-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
ExportProject actions/reducer/state #812
Conversation
…e modified when backend process is split)
src/rootReducer.tsx, line 22 at r1 (raw file):
Super minor, but the convention I've seen most is to place one space after |
src/backend/index.tsx, line 332 at r1 (raw file):
Super minor, but I've usually seen it written |
src/backend/index.tsx, line 331 at r1 (raw file):
|
src/components/ProjectSettings/ProjectExport/ExportProjectActions.tsx, line 18 at r1 (raw file):
These all take Is there anyway to ensure |
src/components/ProjectSettings/ProjectExport/ExportProjectReducer.tsx, line 10 at r1 (raw file):
Another instance of a |
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.
Reviewed 19 of 19 files at r1.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @imnasnainaec)
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @johnthagen)
src/rootReducer.tsx, line 22 at r1 (raw file):
Previously, johnthagen wrote…
Super minor, but the convention I've seen most is to place one space after
//
before a comment if we want to try to stay consistent across all of our code bases.
I matched the dominant format within the file. Could more global consistency be another pr?
src/backend/index.tsx, line 331 at r1 (raw file):
Previously, johnthagen wrote…
LocalStorage.getProjectId()
returns""
if there is no project. Would it be more type safe if it returnedundef
so that we could check for if it exists? Not sure what would happen if you try to query for a blank project (probably a silent error to user)?
That would probably be be better. A later pr perhaps, since there's already so much in this one?
src/backend/index.tsx, line 332 at r1 (raw file):
Previously, johnthagen wrote…
Super minor, but I've usually seen it written
TODO
for what it's worth.
I've usually seen it that way too, but having Spanish-speaking collaborators in the past, I started using ToDo to minimize confusion ("todo" is Spanish for "everything").
src/components/ProjectSettings/ProjectExport/ExportProjectActions.tsx, line 18 at r1 (raw file):
Previously, johnthagen wrote…
These all take
projectId?
. What should happen ifundef
gets passed in here?Is there anyway to ensure
undef
isn't passed in at a higher level and handled once to make the signatures on these functions tighter?
It's okay for that function to receive an undefined or "", because the function it calls checks the local storage for the current project if no project id is supplied (intentional decision).
src/components/ProjectSettings/ProjectExport/ExportProjectReducer.tsx, line 10 at r1 (raw file):
Previously, johnthagen wrote…
Another instance of a
""
project ID. It's not clear to me what this means. Should it instead beprojectId?: undef
so we can handle missing ID via the type system?
That would perhaps be the best thing long term, to do along-side your first request (re. local storage).
src/rootReducer.tsx, line 22 at r1 (raw file): Previously, imnasnainaec (D. Ror.) wrote…
Sure thing. |
src/backend/index.tsx, line 331 at r1 (raw file): Previously, imnasnainaec (D. Ror.) wrote…
Sure thing. |
I didn't find any issues with this PR, but would feel more comfortable if @jasonleenaylor reviewed and gave final approval due to the number of changes and me being relatively less familiar with the overall frontend design. |
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.
Reviewed 15 of 19 files at r1, 3 of 3 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
Removing the block to merging, some consistency changes can come later.
Follow-up to #812 * Add dictionary (keyed by userId) to `LiftService` to hold completed exports for download * Add associated methods `StoreExport`, `RetrieveExport`, and `DeleteExport` * In `LiftController`, split off `DownloadLiftFile` from `ExportLiftFile`
This change is