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

[TM-6077] Re-Integrate Publishable Positions Edit #3020

Merged
merged 5 commits into from
Jun 12, 2024

Conversation

jlam-mpc
Copy link
Collaborator

@jlam-mpc jlam-mpc commented Jun 12, 2024

Dual Merge:

TM-6077

@@ -107,10 +107,17 @@ const PublishablePositionCard = ({

const onSubmitForm = () => {
const editData = {
psCD: data?.psCD,
aptSeqNum: data?.aptSeqNum,
created: data?.ORIGpposcreatetmsmpdt.replace(/T/g, " "),

Choose a reason for hiding this comment

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

🫡

Choose a reason for hiding this comment

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

no wait, there is no ORIG of this one

Choose a reason for hiding this comment

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

disregard! there is now

aptSeqNum: data?.aptSeqNum,
created: data?.ORIGpposcreatetmsmpdt.replace(/T/g, " "),
createdUserID: data?.pposcreateuserid,
positionDetailsLastUpdated: data?.ORIGpositionDetailsLastUpdated.replace(/T/g, " "),

Choose a reason for hiding this comment

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

🫡

posSeqNum: data?.posSeqNum,
positionDetails: textArea,
lastUpdatedUserID: data?.positionLastUpdatedUserID,
lastUpdated: data?.ORIGpositionLastUpdated,
lastUpdated: data?.ORIGpositionLastUpdated.replace(/T/g, " "),

Choose a reason for hiding this comment

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

🫡

@@ -107,10 +107,17 @@ const PublishablePositionCard = ({

const onSubmitForm = () => {
const editData = {
psCD: data?.psCD,
aptSeqNum: data?.aptSeqNum,
created: data?.ORIGpposcreatetmsmpdt.replace(/T/g, " "),
Copy link

Choose a reason for hiding this comment

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

Suggested change
created: data?.ORIGpposcreatetmsmpdt.replace(/T/g, " "),
created: data?.pposcreatetmsmpdt.replace(/T/g, " "),

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The create request looks like this

Data: {
  "pposposseqnum": 774,
  "ppospubscd": "P",
  "pposaptsequencenum": null,
  "pposcreatetmsmpdt": "2003-07-01 22:16:43",
  "pposcreateuserid": 1,
  "pposcapsulemodifydt": "2020-10-16 11:40:57",
  "pposauditexclusionind": "N",
  "pposcapsuledescrtxt": "Scott testing this capsule",
  "pposlastupdttmsmpdt": "2020-10-16 11:40:57",
  "pposlastupdtuserid": 53875
}

pposcreatetmsmpdt is different from poscreatedate

Choose a reason for hiding this comment

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

ur too quick jeanie, i edited it but i was too slow for u

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh but I want to grab the unformatted one to remove the T for editing so I'm using ORIG

Choose a reason for hiding this comment

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

sorry, i hadnt seen ur updated API so i wasnt seeing it in the FE payload! disregard!

@jlam-mpc jlam-mpc merged commit 9b964a2 into dev Jun 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants