US-EPA-CAMD / easey-ui

Project Management repo for EPA Clean Air Markets Division (CAMD) Business Suite of applications
MIT License
0 stars 0 forks source link

Viewing system component in workspace issue (forbidden resource) #5948

Open ntknguyen opened 11 months ago

ntknguyen commented 11 months ago

Forbidden Resource error in View/Edit on any component type code of (O2,CO2,SO2,NOX) in workspace.
Steps:

  1. Checkout Mill Creek 1364 1,2,CS12
  2. Select Systems from Monitoring Plans
  3. Select View System ID 130
  4. Select View Component ID 001 Private Zenhub Image

This may be caused by component types with analyzer range records.

ergjustin commented 7 months ago

The issue was in front API calling session, locId has extra space. For example, if we select location/locId as 72, it will be at 727%E2%80%8B, this value will be checked by camdecmpswks.get_facility_locations function and will throw a forbidden error.

Note : Currently (4/10/2024) Dev environment is bypassing the cdx, so test in test environment

mxtomoto1 commented 6 months ago

Forbidden Resource error still present on test. Confirmed to happen for O2,CO2,SO2,NOX systems. (NOX tested from ORIS 298, LIM1)

Steps:

  1. Checkout Black River Generation, LLC E0001, E0002, E0003, CS-1
  2. Select Systems from Monitoring Plans
  3. Select View/Edit System ID S12 of location CS-1
  4. Select View/Edit Component ID OO2 t_t1
ergjustin commented 6 months ago

4/16/2024: Currently, it is only deployed in dev environment.

mxtomoto1 commented 6 months ago

Edit: testing was done while bypass was active.

Issue appears to have been fixed on dev. Analyzer ranges in component records now display properly without delay after being selected. Confirmed for CO2, SO2, NOX systems.

Steps:

  1. Checkout Limestone LIM1
  2. Select Systems from Monitoring Plans
  3. Select View/Edit System ID SOX
  4. Select View/Edit Component ID 010 t_d1
alangmaid commented 6 months ago

Moving to Sprint 4 because this ticket cannot be tested until the bypass gets removed.

mxtomoto1 commented 5 months ago

Steps on dev:

  1. Checkout Limestone LIM1
  2. Select Systems from Monitoring Plans
  3. Select View/Edit System ID SOX
  4. Select View/Edit Component ID 010

Analyzer ranges currently not visible, confirmed for SO2 (tested on ORIS 298) and CO2 (tested on ORIS 1364) in Edit view and global view. Tester was unable to successfully create a new Analyzer Range, encountering error text "Cannot read properties of null (reading 'componentId')".

t_d3 t_d1
mxtomoto1 commented 5 months ago

Analyzer ranges are visible as intended both on global view and when user checks out a facility, and analyzer ranges can be created without issue. Confirmed at least for for SO2, CO2, NOX using Limestone LIM1.

Steps on dev:

  1. Checkout Limestone LIM1
  2. Select Systems from Monitoring Plans
  3. Select View/Edit System ID SOX
  4. Select View/Edit Component ID 010
  5. Create New Analyzer Range

Image

ibarra-michelle commented 4 months ago

Verified in test and experienced no Forbidden Resource error in both the logged in and global view for two configurations: ORIS 470, Location 1 and ORIS 298, Location LIM1.

Steps to reproduce for ORIS 470, Location 1

  1. Checkout ORIS 470, Location 1.
  2. Select Systems from Monitoring Plans
  3. Select View/Edit System ID CO2
  4. Select View/Edit Component ID 116

Logged in view Image

Global view Image

Steps to reproduce for ORIS 298, Location LIM1

  1. Checkout Limestone LIM1
  2. Select Systems from Monitoring Plans
  3. Select View/Edit System ID SOX
  4. Select View/Edit Component ID 010

Logged in view Image

Global view Image