-
Notifications
You must be signed in to change notification settings - Fork 15
Add onboarding extension requests data model and examples in different state #74
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
d0d0fb1
d6c619c
62bc789
ed79944
5b27857
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,100 @@ | ||||||||||||
|
|
||||||||||||
| ### Onboarding Extension Request Firestore collection model | ||||||||||||
|
|
||||||||||||
| ```json | ||||||||||||
| { | ||||||||||||
| "id": "String", | ||||||||||||
| "type": "String" | ||||||||||||
| "userId": "String", | ||||||||||||
|
Comment on lines
+4
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix JSON Syntax: Missing Comma After "type" Field - "type": "String"
+ "type": "String",📝 Committable suggestion
Suggested change
|
||||||||||||
| "state": "<PENDING | APPROVED | REJECTED>", | ||||||||||||
| "oldEndsOn": "number", | ||||||||||||
| "newEndsOn": "number", | ||||||||||||
| "message": "String", | ||||||||||||
| "createdAt": "Timestamp", | ||||||||||||
| "updatedAt": "Timestamp", | ||||||||||||
| "lastModifiedBy": "String", | ||||||||||||
| "reason": "String", | ||||||||||||
| "requestedBy": "String", | ||||||||||||
| "requestedNumber": "number" | ||||||||||||
| } | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| #### Fields | ||||||||||||
|
|
||||||||||||
| | Field | Type | Description | | ||||||||||||
| | ------------- | --------- | ------------------------------------------------------------------------| | ||||||||||||
| | id | String | Unique identifier for the document. | | ||||||||||||
| | userId | String | The id of the user who created the request. | | ||||||||||||
| | state | String | The state of the request like APPROVED, REJECTED, PENDING. | | ||||||||||||
| | oldEndsOn | number | Old deadline of the onboarding task in millisecond | | ||||||||||||
| | newEndsOn | number | New deadline of the onboarding task in millisecond | | ||||||||||||
| | message | String | The message provided by super user while approving or rejecting request.| | ||||||||||||
| | createdAt | Timestamp | Unix timestamp for the creation time of the request. | | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Standardize Terminology: "Superuser" Instead of "Super user" 🧰 Tools🪛 LanguageTool[grammar] ~31-~31: This is normally spelled as one word. (SUPER_COMPOUNDS) 🪛 markdownlint-cli2 (0.17.2)31-31: Trailing spaces (MD009, no-trailing-spaces) |
||||||||||||
| | updatedAt | Timestamp | Unix timestamp for the last update time of the request. | | ||||||||||||
| | lastModifiedBy| String | The id of the superuser or request owner who processed the request | | ||||||||||||
| | reason | String | The reason for the extension request. | | ||||||||||||
| | requestedBy | String | The username of the user who created the request. | | ||||||||||||
| | requestNumber | number | The current request number for onboarding task. | | ||||||||||||
| | type | String | The type of request i.e. ONBOARDING. | | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Enhance Punctuation in Field Description 🧰 Tools🪛 LanguageTool[typographical] ~38-~38: Consider putting a comma before the abbreviation “i.e.”. (IE_COMMA) |
||||||||||||
|
|
||||||||||||
|
|
||||||||||||
|
|
||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Clean Up Extra Blank Lines 🧰 Tools🪛 markdownlint-cli2 (0.17.2)40-40: Multiple consecutive blank lines (MD012, no-multiple-blanks) 41-41: Multiple consecutive blank lines (MD012, no-multiple-blanks) |
||||||||||||
| ### Example data | ||||||||||||
|
|
||||||||||||
| #### Example for PENDING state | ||||||||||||
|
|
||||||||||||
| ```json | ||||||||||||
| { | ||||||||||||
| "id": "VYSTHeIERJlEtQdpViWo", | ||||||||||||
| "createdAt": 1741328586836, | ||||||||||||
| "updatedAt": 1741328586836, | ||||||||||||
| "type": "ONBOARDING", | ||||||||||||
| "state": "PENDING", | ||||||||||||
| "userId": "7bTCwaMgEnKSumhenkwj", | ||||||||||||
| "requestedBy": "mridul-khandelwal-1", | ||||||||||||
| "oldEndsOn": 1743683053755, | ||||||||||||
| "newEndsOn": 1744115053755, | ||||||||||||
| "reason": "testing", | ||||||||||||
| "requestNumber": 1 | ||||||||||||
| } | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| #### Example for APPROVED state | ||||||||||||
|
|
||||||||||||
| ```json | ||||||||||||
| { | ||||||||||||
| "id": "Vv5IPkhghnNyjPYhw6Ws", | ||||||||||||
| "createdAt": 1738686977925, | ||||||||||||
| "type": "ONBOARDING", | ||||||||||||
| "userId": "p86xesKNsxic6uFe6SZi", | ||||||||||||
| "requestedBy": "mohit-ramani-1", | ||||||||||||
| "oldEndsOn": 1740584089491, | ||||||||||||
| "requestNumber": 1, | ||||||||||||
| "reason": "test 2", | ||||||||||||
| "newEndsOn": 1741132800000, | ||||||||||||
| "lastModifiedBy": "65QiTlqudZfDk3i5W9WO", | ||||||||||||
| "state": "APPROVED", | ||||||||||||
| "message": "super-user message for testing", | ||||||||||||
| "updatedAt": 1738830512066 | ||||||||||||
| } | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| #### Example for REJECTED state | ||||||||||||
|
|
||||||||||||
| ```json | ||||||||||||
| { | ||||||||||||
| "id": "Vv5IPkhghnNyjPYhw6Ws", | ||||||||||||
| "createdAt": 1738686977925, | ||||||||||||
| "type": "ONBOARDING", | ||||||||||||
| "userId": "p86xesKNsxic6uFe6SZi", | ||||||||||||
| "requestedBy": "mohit-ramani-1", | ||||||||||||
| "oldEndsOn": 1740584089491, | ||||||||||||
| "requestNumber": 1, | ||||||||||||
| "reason": "test 2", | ||||||||||||
| "newEndsOn": 1741132800000, | ||||||||||||
| "lastModifiedBy": "65QiTlqudZfDk3i5W9WO", | ||||||||||||
| "state": "REJECTED", | ||||||||||||
| "message": "super-user message for testing", | ||||||||||||
| "updatedAt": 1738830512066 | ||||||||||||
| } | ||||||||||||
| ``` | ||||||||||||
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.
🧹 Nitpick (assertive)
Consider Adding a Top-Level Heading
While the file begins with a level-3 heading, markdown best practices (and tools such as markdownlint MD041) suggest that the first line should be a top-level (level-1) heading. For better structure and readability, consider replacing the current heading with a level-1 heading (e.g.,
# Onboarding Extension Request Firestore Collection Model).🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
2-2: First line in a file should be a top-level heading
null
(MD041, first-line-heading, first-line-h1)