- Notifications
You must be signed in to change notification settings - Fork 4
AB#74319 : Save draft record #802
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
Merged
Merged
Conversation
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
20 tasks
estelafs approved these changes Oct 31, 2023
Contributor
estelafs left a comment
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.
lgtm!
AntoineRelief pushed a commit that referenced this pull request Nov 9, 2023
# [2.2.0-beta.7](ReliefApplications/oort-backend@v2.2.0-beta.6...v2.2.0-beta.7) (2023-11-09) ### Bug Fixes * editRecord would not correctly check non editable fields ([#815](https://github.com/ReliefApplications/oort-backend/issues/815)) ([5ca7717](ReliefApplications/oort-backend@5ca7717)) * in some edge cases, dashboard structure would be incorrectly passed in graphql ([#817](https://github.com/ReliefApplications/oort-backend/issues/817)) ([2a5866e](ReliefApplications/oort-backend@2a5866e)) ### Features * Ability to save draft record ([#802](https://github.com/ReliefApplications/oort-backend/issues/802)) ([d1b1e3b](ReliefApplications/oort-backend@d1b1e3b))
AntoineRelief referenced this pull request in ReliefApplications/oort-backend Nov 20, 2023
# [2.2.0-beta.1](v2.1.3...v2.2.0-beta.1) (2023-11-20) ### Bug Fixes * api configuration would incorrectly save edit api configuration auth type ([e97a8d7](e97a8d7)) * API edit mutation could fail because of incorrect check of arguments ([00b0e0d](00b0e0d)) * build issue after 2.x.x merge ([1d48814](1d48814)) * calculated fields in resource question breaking search in grid ([c5287eb](c5287eb)) * check record trigger would break build ([06691dd](06691dd)) * code could not compile ([5699e03](5699e03)) * contains filter not working if value is single ([b7e5558](b7e5558)) * could not download application with existing name ([#795](https://github.com/ReliefApplications/oort-backend/issues/795)) ([c9f9d8a](c9f9d8a)) * could not get canUpdate / canDelete on meta ([323330a](323330a)) * could not get map data due to incorrect id check ([6906c21](6906c21)) * could not load datasources in layers ([9e1b841](9e1b841)) * dashboard queries would take too much time if context ([7783bff](7783bff)) * disable custom notifications scheduler to prevent system to crash ([00c3e22](00c3e22)) * Download file method would break due to missing file destination ([aac3f63](aac3f63)) * download file would sometimes not throw correct error or resolve request ([46e2cc6](46e2cc6)) * download of template for records upload would query records even if not needed ([b263bdb](b263bdb)) * editing a dashboard inside a workflow could cause unexpected type issue due to incorrect error handling ([75ccd9a](75ccd9a)) * editRecord could break if previous version did not have any data ([85a2d5c](85a2d5c)) * editRecord would not correctly check non editable fields ([#815](https://github.com/ReliefApplications/oort-backend/issues/815)) ([5ca7717](5ca7717)) * error on fetching records with no data ([4986e1d](4986e1d)) * filtering records on form name would break query ([c2d8e58](c2d8e58)) * geofiltering would break layers if empty ([c22a882](c22a882)) * gis/feature route was broken due to incorrect layout / aggregation setup ([7a3cdd7](7a3cdd7)) * graphQL queries would be cached by proxy ([1dd9fba](1dd9fba)) * in some edge cases, dashboard structure would be incorrectly passed in graphql ([#817](https://github.com/ReliefApplications/oort-backend/issues/817)) ([2a5866e](2a5866e)) * inccorect filter in getautoassigned role ([41a0143](41a0143)) * incorrect names for some matrix questions ([1fedb51](1fedb51)) * incorrect timezone in calculated fields. Now enforcing user timezone ([296aab4](296aab4)) * issue with layers using lat lng fields ([88f75f6](88f75f6)) * layer input could not allow saving of heatmap layer ([6da8988](6da8988)) * layers using lat & long could break popup ([#722](https://github.com/ReliefApplications/oort-backend/issues/722)) ([70217f5](70217f5)) * matrix in grid and summary card not correctly saved in db ([#748](https://github.com/ReliefApplications/oort-backend/issues/748)) ([e37b342](e37b342)) * number question values, when saved as string, would not match in filters ([#774](https://github.com/ReliefApplications/oort-backend/issues/774)) ([2dc18ec](2dc18ec)) * prevent any default field to be used in a form ([6e52fda](6e52fda)) * prevent contextual content in pages to be duplicated ([926f476](926f476)) * pulljobs failing would crash server ([e416ee5](e416ee5)) * reference data query not working due to incorrect cursor pagination ([96d7298](96d7298)) * some layers would not work due to incorrect geoField ([f409b1c](f409b1c)) * updated layer model to also saves popup fields info ([#670](https://github.com/ReliefApplications/oort-backend/issues/670)) ([eb43289](eb43289)) ### Features * Ability to save draft record ([#802](https://github.com/ReliefApplications/oort-backend/issues/802)) ([d1b1e3b](d1b1e3b)) * add auth code APIs ([#789](https://github.com/ReliefApplications/oort-backend/issues/789)) ([20ff5d8](20ff5d8)) * add contextual filtering ([0a734e2](0a734e2)) * add dashboard buttons to schema ([fe7bd55](fe7bd55)) * add new route of scss conversion to css ([691794d](691794d)) * allow draft edition of records ([32148b1](32148b1)), closes [feat/AB#65023](https://github.com/feat/AB/issues/65023) * Allow MultiPoint and MultiPolygon on layer features ([514d3ee](514d3ee)) * allow single widget page ([53762f4](53762f4)) * can now archive application pages and restore them ([a76928a](a76928a)) * can now edit page / step 's icons ([#749](https://github.com/ReliefApplications/oort-backend/issues/749)) ([30bb81c](30bb81c)) * can now group layers ([074cb2b](074cb2b)) * can now hide application menu by default ([2519344](2519344)) * can now query historical data ([#752](https://github.com/ReliefApplications/oort-backend/issues/752)) ([75b1c8a](75b1c8a)) * can now sort aggregations on records ([a09f2c8](a09f2c8)) * can now use infinite aggregations ([3f190d4](3f190d4)) * can save custom grid options per dashboard ([#824](https://github.com/ReliefApplications/oort-backend/issues/824)) ([8779433](8779433)) * cluster layers now support new options ([#757](https://github.com/ReliefApplications/oort-backend/issues/757)) ([f9b58b3](f9b58b3)) * get draft data from single record custom query, by passing data argument ([509b670](509b670)) * possibility to hide pages' ([f5ca2e6](f5ca2e6)) * query of polygon features on map ([fc33c06](fc33c06))
AntoineRelief pushed a commit that referenced this pull request Nov 22, 2023
# [2.2.0-alpha.1](v2.1.3...v2.2.0-alpha.1) (2023-11-22) ### Bug Fixes * api configuration would incorrectly save edit api configuration auth type ([e97a8d7](e97a8d7)) * API edit mutation could fail because of incorrect check of arguments ([00b0e0d](00b0e0d)) * build issue after 2.x.x merge ([1d48814](1d48814)) * calculated fields in resource question breaking search in grid ([c5287eb](c5287eb)) * check record trigger would break build ([06691dd](06691dd)) * code could not compile ([5699e03](5699e03)) * contains filter not working if value is single ([b7e5558](b7e5558)) * could not download application with existing name ([#795](#795)) ([c9f9d8a](c9f9d8a)) * could not get canUpdate / canDelete on meta ([323330a](323330a)) * could not get map data due to incorrect id check ([6906c21](6906c21)) * could not load datasources in layers ([9e1b841](9e1b841)) * dashboard queries would take too much time if context ([7783bff](7783bff)) * disable custom notifications scheduler to prevent system to crash ([00c3e22](00c3e22)) * Download file method would break due to missing file destination ([aac3f63](aac3f63)) * download file would sometimes not throw correct error or resolve request ([46e2cc6](46e2cc6)) * download of template for records upload would query records even if not needed ([b263bdb](b263bdb)) * editing a dashboard inside a workflow could cause unexpected type issue due to incorrect error handling ([75ccd9a](75ccd9a)) * editRecord could break if previous version did not have any data ([85a2d5c](85a2d5c)) * editRecord would not correctly check non editable fields ([#815](#815)) ([5ca7717](5ca7717)) * error on fetching records with no data ([4986e1d](4986e1d)) * filtering records on form name would break query ([c2d8e58](c2d8e58)) * geofiltering would break layers if empty ([c22a882](c22a882)) * gis/feature route was broken due to incorrect layout / aggregation setup ([7a3cdd7](7a3cdd7)) * graphQL queries would be cached by proxy ([1dd9fba](1dd9fba)) * in some edge cases, dashboard structure would be incorrectly passed in graphql ([#817](#817)) ([2a5866e](2a5866e)) * inccorect filter in getautoassigned role ([41a0143](41a0143)) * incorrect names for some matrix questions ([1fedb51](1fedb51)) * incorrect timezone in calculated fields. Now enforcing user timezone ([296aab4](296aab4)) * issue with layers using lat lng fields ([88f75f6](88f75f6)) * layer input could not allow saving of heatmap layer ([6da8988](6da8988)) * layers using lat & long could break popup ([#722](#722)) ([70217f5](70217f5)) * matrix in grid and summary card not correctly saved in db ([#748](#748)) ([e37b342](e37b342)) * number question values, when saved as string, would not match in filters ([#774](#774)) ([2dc18ec](2dc18ec)) * ping request using cache and decrypting twice ([#826](#826)) ([14b26c4](14b26c4)) * prevent any default field to be used in a form ([6e52fda](6e52fda)) * prevent contextual content in pages to be duplicated ([926f476](926f476)) * pulljobs failing would crash server ([e416ee5](e416ee5)) * reference data query not working due to incorrect cursor pagination ([96d7298](96d7298)) * some layers would not work due to incorrect geoField ([f409b1c](f409b1c)) * updated layer model to also saves popup fields info ([#670](#670)) ([eb43289](eb43289)) * users roles not appearing in applications ([#835](#835)) ([d05d061](d05d061)) * using size operator on nullish values in aggregations on records ([#836](#836)) ([5eca1c7](5eca1c7)) ### Features * Ability to save draft record ([#802](#802)) ([d1b1e3b](d1b1e3b)) * add auth code APIs ([#789](#789)) ([20ff5d8](20ff5d8)) * add contextual filtering ([0a734e2](0a734e2)) * add dashboard buttons to schema ([fe7bd55](fe7bd55)) * add new route of scss conversion to css ([691794d](691794d)) * allow caching of more API requests ([#825](#825)) ([105f0a5](105f0a5)) * allow draft edition of records ([32148b1](32148b1)), closes [feat/AB#65023](https://github.com/feat/AB/issues/65023) * Allow MultiPoint and MultiPolygon on layer features ([514d3ee](514d3ee)) * allow single widget page ([53762f4](53762f4)) * can now archive application pages and restore them ([a76928a](a76928a)) * can now edit page / step 's icons ([#749](#749)) ([30bb81c](30bb81c)) * can now group layers ([074cb2b](074cb2b)) * can now hide application menu by default ([2519344](2519344)) * can now query historical data ([#752](#752)) ([75b1c8a](75b1c8a)) * can now sort aggregations on records ([a09f2c8](a09f2c8)) * can now use infinite aggregations ([3f190d4](3f190d4)) * can save custom grid options per dashboard ([#824](#824)) ([8779433](8779433)) * cluster layers now support new options ([#757](#757)) ([f9b58b3](f9b58b3)) * get draft data from single record custom query, by passing data argument ([509b670](509b670)) * possibility to hide pages' ([f5ca2e6](f5ca2e6)) * query of polygon features on map ([fc33c06](fc33c06))
AntoineRelief pushed a commit that referenced this pull request Dec 8, 2023
# [2.2.0](v2.1.11...v2.2.0) (2023-12-08) ### Bug Fixes * ability on records could fail due to missing resource ([b217df1](b217df1)) * add access tokens to all internal requests ([067bd1c](067bd1c)) * Add default values for gridOptions in DashboardType to prevent unwanted results when going from one dashboard to another one ([#844](#844)) ([f48459f](f48459f)) * added sorting on id field to avoid having missing records ([#842](#842)) ([935fe1b](935fe1b)) * api configuration would incorrectly save edit api configuration auth type ([e97a8d7](e97a8d7)) * API edit mutation could fail because of incorrect check of arguments ([00b0e0d](00b0e0d)) * audience would not be available ([4e76800](4e76800)) * boolean would not correctly be calculated in getFilter ([58dc862](58dc862)) * build issue after 2.x.x merge ([1d48814](1d48814)) * build would fail due to incorrect default value for auth audience ([8985cc0](8985cc0)) * calculated fields in resource question breaking search in grid ([c5287eb](c5287eb)) * check record trigger would break build ([06691dd](06691dd)) * client flow authentication would not work due to incorrect update when migrating mongoose version ([18a4683](18a4683)) * cloning application would not clone filter & grid options in dashboards ([3162811](3162811)) * code could not compile ([5699e03](5699e03)) * contains filter not working if value is single ([b7e5558](b7e5558)) * could not always get fields from ref data ([32e83d4](32e83d4)) * could not download application with existing name ([#795](#795)) ([c9f9d8a](c9f9d8a)) * could not get canUpdate / canDelete on meta ([323330a](323330a)) * could not get map data due to incorrect id check ([6906c21](6906c21)) * could not load datasources in layers ([9e1b841](9e1b841)) * dashboard queries would take too much time if context ([7783bff](7783bff)) * disable custom notifications scheduler to prevent system to crash ([00c3e22](00c3e22)) * Download file method would break due to missing file destination ([aac3f63](aac3f63)) * download file would sometimes not throw correct error or resolve request ([46e2cc6](46e2cc6)) * download of template for records upload would query records even if not needed ([b263bdb](b263bdb)) * editing a dashboard inside a workflow could cause unexpected type issue due to incorrect error handling ([75ccd9a](75ccd9a)) * editRecord could break if previous version did not have any data ([85a2d5c](85a2d5c)) * editRecord would not correctly check non editable fields ([#815](#815)) ([5ca7717](5ca7717)) * error on fetching records with no data ([4986e1d](4986e1d)) * filtering records on form name would break query ([c2d8e58](c2d8e58)) * geofiltering would break layers if empty ([c22a882](c22a882)) * gis/feature route was broken due to incorrect layout / aggregation setup ([7a3cdd7](7a3cdd7)) * grant ability to read api configuration & reference data to all records ([d45c394](d45c394)) * graphQL queries would be cached by proxy ([1dd9fba](1dd9fba)) * in some edge cases, dashboard structure would be incorrectly passed in graphql ([#817](#817)) ([2a5866e](2a5866e)) * inccorect filter in getautoassigned role ([41a0143](41a0143)) * incorrect audience settings ([9c8e710](9c8e710)) * incorrect display of date fields in export & history ([#857](#857)) ([5262f8b](5262f8b)) * incorrect mutation to set filter at dashboard level ([2d57100](2d57100)) * incorrect names for some matrix questions ([1fedb51](1fedb51)) * incorrect sorting on api configurations ([#852](#852)) ([1260ceb](1260ceb)) * incorrect timezone in calculated fields. Now enforcing user timezone ([296aab4](296aab4)) * issue with layers using lat lng fields ([88f75f6](88f75f6)) * layer input could not allow saving of heatmap layer ([6da8988](6da8988)) * layers using lat & long could break popup ([#722](#722)) ([70217f5](70217f5)) * matrix in grid and summary card not correctly saved in db ([#748](#748)) ([e37b342](e37b342)) * number question values, when saved as string, would not match in filters ([#774](#774)) ([2dc18ec](2dc18ec)) * ping request using cache and decrypting twice ([#826](#826)) ([14b26c4](14b26c4)) * prevent any default field to be used in a form ([6e52fda](6e52fda)) * prevent contextual content in pages to be duplicated ([926f476](926f476)) * pulljobs failing would crash server ([e416ee5](e416ee5)) * redis client error ([2c45593](2c45593)) * reference data not getting exported ([#858](#858)) ([24ad915](24ad915)) * reference data query not working due to incorrect cursor pagination ([96d7298](96d7298)) * some layers would not work due to incorrect geoField ([f409b1c](f409b1c)) * some permissions issues when not admin ([794683d](794683d)) * updated layer model to also saves popup fields info ([#670](#670)) ([eb43289](eb43289)) * upload would fail most of the time for tagbox / checkbox questions ([243f77d](243f77d)) * users roles not appearing in applications ([#835](#835)) ([d05d061](d05d061)) * users who can edit application can now delete the steps & pages ([cf130ce](cf130ce)) * using size operator on nullish values in aggregations on records ([#836](#836)) ([5eca1c7](5eca1c7)) ### Features * Ability to save draft record ([#802](#802)) ([d1b1e3b](d1b1e3b)) * add auth code APIs ([#789](#789)) ([20ff5d8](20ff5d8)) * add contextual filtering ([0a734e2](0a734e2)) * add dashboard buttons to schema ([fe7bd55](fe7bd55)) * add new route of scss conversion to css ([691794d](691794d)) * allow caching of more API requests ([#825](#825)) ([105f0a5](105f0a5)) * allow draft edition of records ([32148b1](32148b1)), closes [feat/AB#65023](https://github.com/feat/AB/issues/65023) * Allow MultiPoint and MultiPolygon on layer features ([514d3ee](514d3ee)) * allow single widget page ([53762f4](53762f4)) * can now archive application pages and restore them ([a76928a](a76928a)) * can now edit page / step 's icons ([#749](#749)) ([30bb81c](30bb81c)) * can now group layers ([074cb2b](074cb2b)) * can now hide application menu by default ([2519344](2519344)) * can now query historical data ([#752](#752)) ([75b1c8a](75b1c8a)) * can now sort aggregations on records ([a09f2c8](a09f2c8)) * can now use infinite aggregations ([3f190d4](3f190d4)) * can save custom grid options per dashboard ([#824](#824)) ([8779433](8779433)) * cluster layers now support new options ([#757](#757)) ([f9b58b3](f9b58b3)) * get draft data from single record custom query, by passing data argument ([509b670](509b670)) * now use filter at dashboard level ([#834](#834)) ([6b3f4e9](6b3f4e9)) * possibility to hide pages' ([f5ca2e6](f5ca2e6)) * query of polygon features on map ([fc33c06](fc33c06))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Description
Adds a new feature that allows the user to save draft records and select them to fill a form again.
User story 74319
Ticket 77590
Useful links
Type of change
Please delete options that are not relevant.
How Has This Been Tested
Screenshots
Please include screenshots of this change. If this issue is only back-end related, and does not involve any visual change of the platform, you can skip this part.
Checklist:
( * == Mandatory )