API - NOC Events & Created Date Update#663
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
| event_name = db.Column(db.Enum(EventName), nullable=False) | ||
| details = db.Column(db.String, nullable=True) | ||
| created_date = db.Column(db.DateTime, nullable=False, server_default=text("(NOW())")) | ||
| created_date = db.Column(db.DateTime(timezone=True), nullable=False, server_default=text("(NOW())")) |
There was a problem hiding this comment.
Is this getting stored in UTC? Looks like it may be using the tz of db server
There was a problem hiding this comment.
It is getting stored in UTC but it doesn't have the offset as it timezone aware which is causing issues when converting it in the UI.
| start_date = db.Column(db.DateTime(timezone=True), nullable=False) | ||
| end_date = db.Column(db.DateTime(timezone=True), nullable=False) | ||
| creation_date = db.Column(db.DateTime, nullable=False, server_default=text("(NOW())")) | ||
| creation_date = db.Column(db.DateTime(timezone=True), nullable=False, server_default=text("(NOW())")) |
There was a problem hiding this comment.
I think I need to remove this column because these are present in the base model
| application.status = Application.Status.NOC_PENDING | ||
| application.save() | ||
| EmailService.send_notice_of_consideration_for_application(application) | ||
| reviewer = UserService.get_or_create_user_in_context() |
There was a problem hiding this comment.
this is already done at the resource level. Passing reviewer_id will avoid the extra look up
You will have merge the api code first and then update the api version in the job and commit that poetry lock file as well |
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com>
|
|
* feat: Registration Todos (#668) * feat: Registration Todos * Added Expired to the status array * API - NOC Events & Created Date Update (#663) * 26983 - events & timestamp type update Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - lint fix Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - nox_expiry unit test Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - lint fix Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - cleanup Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - cleanup Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - add UnitTestConfig to noc_expiry job conftest Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - isort fix Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - run mode fix Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - run mode fix Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - check assignee, feedback changes, remove noc_expiry job changes Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * 26983 - lint fixes Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> --------- Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * noc expiry timezone related fix & noc events (#664) Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> * Fix scroll in NOC To Do (#667) * Fix scroll in NOC To Do * ci-cd (#671) * indent (#673) * add quote (#674) * fix: Adding run script (#675) --------- Signed-off-by: Shaanjot Gill <gill.shaanjots@gmail.com> Co-authored-by: Shaanjot Gill <shaangill025@users.noreply.github.com> Co-authored-by: Dima K <dima1086@hotmail.com> Co-authored-by: Avni Salhotra <132402145+avni-work@users.noreply.github.com>




Issue:
Description of changes:
Also added an
is-assigneecheck endpoint which is required for assign and unassign workflow in Examiner UI.(Verified that time being shown is in Pacific even though system time is in EST)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the BC Registry and Digital Services BSD 3-Clause License