Skip to content

MAC Address values format update#9134

Merged
polmichel merged 0 commit into
ai-bug-pipeline-8896-iphost-hfid-consistencyfrom
pmi-20260504-mac-address-values
May 6, 2026
Merged

MAC Address values format update#9134
polmichel merged 0 commit into
ai-bug-pipeline-8896-iphost-hfid-consistencyfrom
pmi-20260504-mac-address-values

Conversation

@polmichel

@polmichel polmichel commented May 5, 2026

Copy link
Copy Markdown
Contributor

Why

MAC address values are standardized to the following form: 01-23-45-67-89-AB.
Expected standardized form is 01:23:45:67:89:AB.

Closes #9015 and IFC-2494

What

This PR updates the standardization method against MAC address values, and add a migration to update any existing MAC address attributes or existing display labels/HFID that would reference such attribute.

Additional information

This is built on top of the following PR https://github.com/opsmill/infrahub/pull/8904/commits.

@github-actions github-actions Bot added type/documentation Improvements or additions to documentation group/backend Issue related to the backend (API Server, Git Agent) labels May 5, 2026
@codspeed-hq

codspeed-hq Bot commented May 5, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 12 untouched benchmarks


Comparing pmi-20260504-mac-address-values (7b95720) with ai-bug-pipeline-8896-iphost-hfid-consistency (8f7a28a)

Open in CodSpeed

@polmichel polmichel changed the title Mac Address values format update MAC Address values format update May 5, 2026
@polmichel polmichel marked this pull request as ready for review May 5, 2026 10:09
@polmichel polmichel requested review from a team as code owners May 5, 2026 10:09

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can migrations 70 and 71 be somewhat reordered so that we first update the MAC address attribute values and then update the HFID/display labels using those attributes?
it feels confusing to update IP/MAC HFID and display labels, then update MAC attributes, then update MAC HFID/display labels again

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That sounds smart I have not thought about that. Will do

@polmichel polmichel force-pushed the pmi-20260504-mac-address-values branch from 7b95720 to 0ce11ce Compare May 6, 2026 08:19
@polmichel polmichel requested review from a team as code owners May 6, 2026 08:19
@polmichel polmichel merged commit 0ce11ce into ai-bug-pipeline-8896-iphost-hfid-consistency May 6, 2026
1 of 2 checks passed
@polmichel polmichel force-pushed the ai-bug-pipeline-8896-iphost-hfid-consistency branch from 8f7a28a to ae529a1 Compare May 6, 2026 08:19
@polmichel polmichel deleted the pmi-20260504-mac-address-values branch May 6, 2026 08:19
@polmichel polmichel restored the pmi-20260504-mac-address-values branch May 6, 2026 08:21
@polmichel

Copy link
Copy Markdown
Contributor Author

This has not really been merged, I have just met the definition of GH "merged" status while trying to invert the migration (a fortiori branches) order.

@polmichel

Copy link
Copy Markdown
Contributor Author

#9149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

group/backend Issue related to the backend (API Server, Git Agent) type/documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants