Skip to content

Issue 2019: Use guids instead of int IDs for routing#2022

Merged
rmroot merged 4 commits intodevelopfrom
issue-2019
Aug 5, 2025
Merged

Issue 2019: Use guids instead of int IDs for routing#2022
rmroot merged 4 commits intodevelopfrom
issue-2019

Conversation

@rmroot
Copy link
Copy Markdown
Member

@rmroot rmroot commented Aug 5, 2025

connects #2019

updates analytics events to strip guid and cleanup rollup of analytics page views

all navigation uses guid instead of int IDs

@rmroot rmroot requested a review from Copilot August 5, 2025 16:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements a comprehensive migration from integer-based IDs to GUID-based routing throughout the application. The primary purpose is to standardize on GUID identifiers for all navigation and URL paths, replacing integer ID references with GUID equivalents.

Key changes include:

  • Updated all routing URLs to use GUID properties instead of integer ID properties for facilities, meters, and other entities
  • Modified parameter parsing logic to handle string GUIDs instead of integer IDs
  • Updated analytics service to properly handle GUID patterns in URL cleanup

Reviewed Changes

Copilot reviewed 42 out of 42 changed files in this pull request and generated 3 comments.

File Description
Multiple component files Updated router navigation calls to use .guid instead of .id properties
HTML template files Changed routerLink attributes to reference GUID properties
Parameter parsing components Modified to parse string GUIDs instead of integer IDs
Analytics service Updated URL pattern matching to handle GUID format
Comments suppressed due to low confidence (1)

src/app/shared/shared-meter-content/meter-data/meter-data-table/meter-data-table.component.ts:59

  • This TODO comment about updating for int is now obsolete since the migration to GUIDs is complete. The comment should be removed.
    this.paramsSub = this.activatedRoute.parent.params.subscribe(params => {

@rmroot rmroot merged commit 8111c07 into develop Aug 5, 2025
3 checks passed
@rmroot rmroot deleted the issue-2019 branch August 13, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants