Skip to content
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

Added crudkey property, updated environment and databucket actions #1082

Merged

Conversation

n1ce1041
Copy link
Contributor

@n1ce1041 n1ce1041 commented Jul 15, 2023

Technical implementation details

  • Update Route and environment types to accommodate crudKey
  • Update joi schema and defaults for crudKey
  • New field added in UI below the data bucket selector
  • Updated crud.ts to use crudkey in lieu of id
  • Added dataBucketActions unit tests with 100% coverage
  • Manual QA
  • data migration added (@mockoon/commons)
  • data migration automated tests added (@mockoon/commons)
  • desktop automated tests added (@mockoon/desktop)

Don't think I need CLI tests, but will add in if required.

Closes #1041

@n1ce1041 n1ce1041 requested a review from 255kb as a code owner July 15, 2023 11:53
@n1ce1041 n1ce1041 force-pushed the feature/1041-implement-crudkey-index branch 4 times, most recently from 5e90da7 to d3d8cc2 Compare July 16, 2023 12:50
Copy link
Member

@255kb 255kb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR.
Most of the requested changes are to avoid a serve restart, + some minor UI changes.

Let me know if you have questions.

PS: desktop tests are not passing. You have to migrate the test environments by running node .//scripts/migrate-tests.js inside the ./packages/desktop folder.

@n1ce1041 n1ce1041 force-pushed the feature/1041-implement-crudkey-index branch from d3d8cc2 to 346ef2c Compare July 18, 2023 09:44
@n1ce1041 n1ce1041 requested a review from 255kb July 18, 2023 10:28
@n1ce1041 n1ce1041 force-pushed the feature/1041-implement-crudkey-index branch 3 times, most recently from 935caa1 to 5693f36 Compare July 19, 2023 06:13
@n1ce1041 n1ce1041 force-pushed the feature/1041-implement-crudkey-index branch from 5693f36 to 3a8abeb Compare July 19, 2023 07:41
@n1ce1041 n1ce1041 requested a review from 255kb July 19, 2023 07:41
@255kb 255kb changed the base branch from main to release/next July 20, 2023 12:59
@255kb 255kb changed the base branch from release/next to main July 20, 2023 13:01
@255kb 255kb changed the base branch from main to release/next July 20, 2023 13:10
@255kb 255kb merged commit 902f51a into mockoon:release/next Jul 20, 2023
10 checks passed
255kb added a commit that referenced this pull request Jul 24, 2023
* Logs standardization (#1064)

- add log transaction option to serverless and desktop
- extract server logging to commons-server
- standardize how server is logging its events
- use same logger (winston) for all the applications
- redact authorization headers when logging to file
Closes #978
Closes #688
Closes #1063

* Add context menu entry to move an environment file (#1065)

Closes #1062

* Review desktop messages and logging after #1063

* Fix documentation generator

* Enable OpenAPI `example` export (#1067)

fixes OpenAPI export crashing with CRUD routes
Closes #352
Closes #1066

* Make `data` helpers compatible with safestring (#1071)

Closes #1069

* Remove reload view and rewrite change detection

use custom rxjs operator that listen to the object changed and some reducer actions that always force the refresh
Also disable template generation on pressing enter if quota reached

* Switch lerna version to fixed

* Add stringify option to oneof helper

* Allow search of hidden routes in the desktop app (#1083)

Automatically uncollapse parent folders of selected route after a search
Closes #960

* Fix for faker methods with numbers in their names (#1084)

* Enable watch mode for libraries

Closes #1076

* Added crudkey property, updated environment and databucket actions (#1082)

* Added crudkey property, updated environment and databucket actions

* Updated crudKey to be a property of RouteResponse
Closes #1041

* Fix package lock and crudKey tooltip wording

* Move crudKey field next to CRUD data bucket selector in desktop app

* CLI refactoring (#1090)

- remove PM2 dependency
- remove list and stop commands, remove `--pname` flag
- make foreground the default and remove the `--daemon-flag`
- simplify the dockerize command to only generates a Dockerfile, and enable file downloading
- remove some dependencies to simplify maintenance (inquirer, etc.)
Closes #1081

* Update repository images

* Update CLI documentation headers and links

* Enable truncation for log menu entries in desktop app

Closes #1085

* Update dependencies

* New prettier format

---------

Co-authored-by: ajatkj <ajatkj@yahoo.co.in>
Co-authored-by: n1ce1041 <70496526+n1ce1041@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CRUD - replace :id with a different var
2 participants