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

📇 feature: Electrical consumers #508

Closed
6 tasks done
Tracked by #516
ken-mellem opened this issue Aug 23, 2023 · 7 comments
Closed
6 tasks done
Tracked by #516

📇 feature: Electrical consumers #508

ken-mellem opened this issue Aug 23, 2023 · 7 comments

Comments

@ken-mellem
Copy link
Contributor Author

Aman has requested data from STID to FAM.

@ken-mellem ken-mellem changed the title 🔍 Refinement: Electrical consumers 🔍 Spike: Electrical consumers Aug 23, 2023
@Gustav-Eikaas
Copy link
Contributor

Gustav-Eikaas commented Aug 24, 2023

Current status:
FAM does not contain OGP data for electrical networks. They are informed that this is important to us and will work on getting the data. This data will come from STID. It is possible to go directly to STID to aqcuire the data but it will need to be joined with FAM/PCS data (checklists).

Going directly to STID

For main view (Table)

  1. Query stidapitest.equinor.com/portal//ele-consumers
  2. Filter tagcategory; 7 Main Equipment, 8 Electrical field equipment, 11 Heat tracing cable.
  3. Query from every facility on projectmaster.
  4. Add property to distinguish tags belonging to PM (Requires PCS data)
  5. Join in disconnected status from local db

Should be cached for ~1 hr

For elenetwork

  1. Query Query stidapitest.equinor.com/portal//ele-net-consumer?tagNo=
  2. Join with checklist status using data from FAM

@ken-mellem ken-mellem changed the title 🔍 Spike: Electrical consumers 📇 feature: Electrical consumers Aug 28, 2023
@Gustav-Eikaas
Copy link
Contributor

Current status:
App is in a usable state(mvp). Data is fetched from STID and joined with fam information. Circuit diagram renders correctly in sidesheet.

@ken-mellem
Copy link
Contributor Author

Setting back to Refinement - we need to find a way to get data - and a priority on this. @atlewee

@atlewee
Copy link

atlewee commented Nov 13, 2023

Get data:
I think we should be able to get this data purely from ProCoSys/FAM, and not require STID at all.
We can do that by traversing CompletionTagDetails (cables) fromTag/toTag from bottom until circuit/switchboard
Probably easier in code than SQL.
This connections (fromtag/toTag) change infrequently so running a process every 24h that builds a simpler table to further join data into could be a solution if direct sql is not possible.

Priority:
The user requesting and pushing for this has left his job, so no more pressure from him.
But this data is also used in Piping, HeatTrace + ReleaseControl. So we need this data anyway.

@ken-mellem
Copy link
Contributor Author

Had a chat with Atle - I understand that we have the data but not in the model we need for the apps in question. @BenSvend can assist and assess if this is something we want to do in a view or if we should opt to calculate this on-demand on backend.

@Gustav-Eikaas
Copy link
Contributor

App didnt make the cut

@Gustav-Eikaas Gustav-Eikaas closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants