Skip to content

Cleanup Legacy Geo Errors

Zack Cuddy requested to merge 211862_02-cleanup-unused-errors into master

What does this MR do?

This is a split off from !29800 (merged) This is work towards this effort #211953 (closed)

Important Notes

In this MR I found a section of code related to NodeDetailsErrors that was never set to true. It appears that the error logic actually got pulled into a higher component GeoNodeDetails.

When working on the above mentioned MR I came across the data property isNodeDetailsFailed found in this file: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/geo_nodes/components/geo_node_item.vue

After following it I realized there isn't any logic to set it to true, so it was never being used yet there was a lot of conditional logic using it.

The errors actually are being showcased here now: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/geo_nodes/components/geo_node_details.vue#L93-100

Screenshots

Errors still working: Errors_Still_Appear

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Zack Cuddy

Merge request reports