-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Prevent project generation if api failure #1627
Conversation
@spwoodcock, what approach can we take in this scenario:
|
I think that's a very good idea π Call delete project so the user can try again |
* fix(hotfix): download of basemaps in ui, max zoom level 22 used for tms * ci: update all gh-workflows to latest v1.6.0 * build: upgrade rclone --> v1 pin to avoid CVE-2024-24790 * build: remove unnecessary tables and field from db schema (#1623) * build: remove unnecessary tables via migration & simplify schema * refactor: remove references to removed tables in sqlalchemy models * build: add IF EXISTS to DROP COLUMN in migration * build: remove default columns from previous migration * fix(backend): minor fixes to HTTPException on endpoints * fix(backend): addded created date on the project response, set expiry of access token to 1 hour (#1633) * docs: add placeholder for axiom repo activity * fix(createProjectSlice): set generateProject & drawToggle status to default * feat(commonUtils): isStatusSuccess function add * test: get the detailed task history for a project (#1626) * build(backend): add async-lru dep, remove cpuinfo dep * fix: replace lru_cache with async for getting odk creds * fix(splitTasks): dependency add to useEffect * fix(createProjectService): halt project creation if api failure --------- Co-authored-by: spwoodcock <sam.woodcock@protonmail.com> Co-authored-by: Sam <78538841+spwoodcock@users.noreply.github.com> Co-authored-by: Sujan Adhikari <109404840+Sujanadh@users.noreply.github.com> Co-authored-by: Azhar Ismagulova <31756707+azharcodeit@users.noreply.github.com>
21ae3f3
to
fceafd9
Compare
I merged the other PR then rebased this to It should only include the edits made π |
Working nicely for me! Great job Nishit π |
What type of PR is this? (check all applicable)
Describe this PR
generateProjectError
andgenerateProjectSuccess
.generateProjectSuccess
is set to true, then the watcher inSplitTasks.tsx
will display a success message and do the redirect.generateProjectError
is set at any stage, then the remaining project creation stages should stop - I didn't get to implement this, could you take a look please?Review Guide
Notes for the reviewer. How to test this change?
Checklist before requesting a review
[optional] What gif best describes this PR or how it makes you feel?