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

SWCR: SWCR.Status Field from SWCR #741

Closed
2 tasks
BenSvend opened this issue Dec 6, 2023 · 11 comments
Closed
2 tasks

SWCR: SWCR.Status Field from SWCR #741

BenSvend opened this issue Dec 6, 2023 · 11 comments
Assignees
Labels
data Some application in need of new API, more data, new views etc.

Comments

@BenSvend
Copy link
Contributor

BenSvend commented Dec 6, 2023

Summary

It was discovered by users of the SWCR sidesheet in Handover that the SWCR.Status field displayed incorrect data.

Feedback from FAM and Procosys verified that there is a mistake on their end:

"Status is a calculated field, based on several tables, it is not persisted. We do send the current status when sending the swcr, but perhaps that is a mistake.
This is a bug, and I'm not sure how to solve it, will have to work it out."

Decision

Create a new Custom_View in FAM for this specific calculation.

UAT

  • correct SWCR Status is available in FAM
  • SWCR Status is viewed in sidesheet for Handover.
@BenSvend BenSvend self-assigned this Dec 6, 2023
@BenSvend BenSvend added the data Some application in need of new API, more data, new views etc. label Dec 6, 2023
@Gustav-Eikaas Gustav-Eikaas pinned this issue Dec 7, 2023
@Gustav-Eikaas
Copy link
Contributor

After a chat with Atle and Tord we looked into the possibility of calculating this status in FAM. This calculation requires PCS library but we think we have all the required fields already in FAM

@BenSvend
Copy link
Contributor Author

BenSvend commented Dec 8, 2023

FYI. @atlewee @ken-mellem @Gustav-Eikaas

FAM is currently holding internal discussions on whether or not they should do the calculations themselves, or have us do it. I've therefore decided to wait for their conclusion before trying to do the calculations myself. Stian Håland at FAM indicated that they would have a conclusion withing next week.

@ken-mellem
Copy link
Contributor

FAM has concluded: they have labeled this field as a custom field and will not implement in FAM.

[2:50 PM] Stian Håland (Bouvet ASA)
Completion.CompletionSoftwareChangeRecord.Status
Hi,

As previously mentioned, there are currently some issues with how Completion.CompletionSoftwareChangeRecord.Status is being calculated/sent to FAM, as updates to this status does not trigger a resend from PCS -> FAM.

As Atle Wee Førre points out, it should be possible to calculate this based on data currently available in FAM. Since this is a calculated column, we would like to handle this as a "Custom" value, which means that the calculation should be done on the consumer side / by the consumers of FAM.

Ken Vegard Mellem (Bouvet ASA) is this okay with you/your team? In short, your team will have to do this calculation.

I agree with this conclusion.

Options

We must discuss how to resolve this. Three options

  1. calculate in our backend
  2. create a new custom view
  3. remove the status field

I guess option 3 is not really an option as the field is being used. If we go for option 2, then this calculation is a good first candidate to move to the new self-service - both as an example of a POC but also to showcase its use-case and value.

I do not know the complexity of the PCS calculation we would be replicating. But we must make sure to quality assure that we are able to calculate the same results. This is hardly ideal... PCS should be offered the option of commenting on this.

@ken-mellem
Copy link
Contributor

Decision: for now, we create a new custom view - which will be moved to our self-service when that is ready. For now, it will reside in FAM.

@ken-mellem
Copy link
Contributor

ken-mellem commented Dec 18, 2023

Current status

@BenSvend

  • Vi mangler noe data i FAM, Atle har etterspurt dette nå. Koden er også ganske omfattende, og det må nok gjøres en god del testing.
  • Når jeg går gjennom å dobbeltsjekker feilene som han har påpekt så har kalkulasjonene jeg nå har gjort klart å få riktig status på alle de han påpekte var feil. Så kan virke som jeg kun mangler det feltet fra FAM nå for å være ferdig.

@ken-mellem ken-mellem changed the title SWCR: Remove SWCR.Status Field from SWCR SWCR: SWCR.Status Field from SWCR Dec 19, 2023
@ken-mellem
Copy link
Contributor

ken-mellem commented Dec 19, 2023

Status update

We had a meeting with Atle and Tord, Gustav and Ben today. The status field is not the entire story. A given status for an SWCR is configurable for each facility in PCS; a status called "closed" may actually cover both "rejected" and "closed" in the classification of each SWCR, which turns out is the field we really want to show. There is currently no field in FAM which can store this mapping.

Short term solution: we will revert to fetching SWCR sidesheet using fusion-data-proxy until we have resolved the issue.

@Gustav-Eikaas
Copy link
Contributor

Gustav-Eikaas commented Dec 19, 2023

PR merged. QA verified. Rolled out into production. Verified.

Old service message removed, new info one added saying the status is now correct

@ken-mellem
Copy link
Contributor

Reduced urgency as we now have a temporary fix. Thanks @Gustav-Eikaas !

@ken-mellem
Copy link
Contributor

ken-mellem commented Dec 20, 2023

@ken-mellem
Copy link
Contributor

@EdwardBrunton EdwardBrunton unpinned this issue Apr 9, 2024
@ken-mellem ken-mellem assigned ken-mellem and unassigned espenkalle and BenSvend May 6, 2024
@JanskiB
Copy link

JanskiB commented Jun 27, 2024

FYI @ken-mellem
112033 [Send SWCR to FAM when SWCR Signature changes] status change to Done in ProCoSys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Some application in need of new API, more data, new views etc.
Projects
None yet
Development

No branches or pull requests

5 participants