Skip to content

OBPIH-6765 Add "Desired Date of Delivery" for E-Requests#4925

Merged
awalkowiak merged 8 commits intodevelopfrom
OBPIH-6765
Nov 6, 2024
Merged

OBPIH-6765 Add "Desired Date of Delivery" for E-Requests#4925
awalkowiak merged 8 commits intodevelopfrom
OBPIH-6765

Conversation

@alannadolny
Copy link
Collaborator

No description provided.

@alannadolny alannadolny self-assigned this Nov 4, 2024
@github-actions github-actions bot added domain: frontend Changes or discussions relating to the frontend UI domain: backend Changes or discussions relating to the backend server flag: schema change Hilights a pull request that contains a change to the database schema domain: l10n Changes or discussions relating to localization & Internationalization labels Nov 4, 2024
dateCreated : dateCreated?.format("MM/dd/yyyy"),
dateShipped : dateShipped?.format("MM/dd/yyyy HH:mm XXX"),
expectedDeliveryDate: expectedDeliveryDate?.format("MM/dd/yyyy HH:mm XXX"),
desiredDeliveryDate : requisition?.desiredDeliveryDate?.format("MM/dd/yyyy"),
Copy link
Member

Choose a reason for hiding this comment

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

why requisition and not the desiredDeliveryDate field you added?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we wanted to get rid of formatting a date on the backend and let the frontend handle the eventual formatting.
How about removing .format here and formatting it with Moment on the frontend?

Date dateDelivered
Date dateIssued
Date dateReceived
Date desiredDeliveryDate
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like our convention is date<Something>, but I don't know how this should look like for this one. @jmiranda do you have any preference or suggestion?

Copy link
Member

Choose a reason for hiding this comment

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

@awalkowiak @alannadolny I will have an answer for you today.

Copy link
Member

Choose a reason for hiding this comment

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

In the future, let's flag all tickets that require data model changes during the planning poker activity. All data model changes (no matter how small) must go through a design process. And this should almost always be done before we start working on the feature.

cc @awalkowiak @ewaterman

Copy link
Member

Choose a reason for hiding this comment

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

I think dateDeliveryRequested makes the most sense.

Besides the naming, the reason I mentioned "design" was because I would have implemented this a little more generically at the data model and API level. The requested delivery date should also be available at the requisition line item level, even if the UI of the current feature does not support it.

second part of the sentence. If there is no delivery date, we just finish the sentence after requestCreatedBy
message. It cannot be included in HTML alone because there will be additional space around the punctuation mark.
--}%
<g:set var="punctuationMark" value="${requisition.desiredDeliveryDate ? ',' : '.'}" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

I get the idea here, but this looks odd. Would it not be clearer if it was just a {requisition.desiredDeliveryDate ? ',' : '.'} in between two g:message tags instead of an additional argument?

Copy link
Collaborator

Choose a reason for hiding this comment

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

or the other option would be always having the
You have received a new request from: {0}, created by: {1}, desired date of delivery: {2}. Click <a href="{2}">here</a> to review your requests pending your approval.
and {2} would get requisition.desiredDeliveryDate ?: 'unknown', or something like that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To your second comment: I asked Manon about that before and she answered it would be better to not show the date if it is null.
To your first comment: As you can see I left a comment "It cannot be included in HTML alone because there will be additional space around the punctuation mark."

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok

<include file="0.9.x/changelog-2024-08-19-1200-alter-table-invoice-item-set-invoice-non-null.xml" />
<include file="0.9.x/changelog-2024-08-20-0000-migrate-prepayment-invoices-add-amount-and-inverse-items.groovy" />
<include file="0.9.x/changelog-2024-10-04-1610-assign-amount-to-invoice-items.xml" />
<include file="0.9.x/changelog-2024-10-28-1330-add-desired-delivery-date-field.xml" />
Copy link
Member

@jmiranda jmiranda Nov 6, 2024

Choose a reason for hiding this comment

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

make sure the prefix here is "add-column-..."

@awalkowiak awalkowiak merged commit 2236b49 into develop Nov 6, 2024
@awalkowiak awalkowiak deleted the OBPIH-6765 branch November 6, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: backend Changes or discussions relating to the backend server domain: frontend Changes or discussions relating to the frontend UI domain: l10n Changes or discussions relating to localization & Internationalization flag: schema change Hilights a pull request that contains a change to the database schema

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants