Skip to content

Feature/daq questdb uns path#2220

Open
CuAuPro wants to merge 2 commits intofrangoteam:masterfrom
CuAuPro:feature/daq-questdb-uns-path
Open

Feature/daq questdb uns path#2220
CuAuPro wants to merge 2 commits intofrangoteam:masterfrom
CuAuPro:feature/daq-questdb-uns-path

Conversation

@CuAuPro
Copy link

@CuAuPro CuAuPro commented Feb 26, 2026

📌 Description

This PR introduces Unified Namespace (UNS) path support for tags and persists it in QuestDB DAQ storage.

  • What problem does this solve?
    • Tags had no explicit UNS metadata field, and QuestDB DAQ records did not store UNS path information.
    • This made it harder to align DAQ data with a unified naming model across datasources.
  • What was changed?
    • Added top-level tag.unsPath metadata.
    • Added UNS visibility in device tag list (icon indicator + tooltip when configured).
    • Added UNS Path field in Tag Options with duplicate-path validation (per device).
    • Added i18n key device.tag-uns-path across language files.
    • Extended QuestDB DAQ schema/write path to store uns_path and added backward-safe column migration.
  • Why is this needed?
    • Enables consistent UNS mapping for tags.
    • Preserves UNS context in historical DAQ data for querying/integration.

🧪 Type of Change

Please mark the relevant option:

  • Bug fix
  • New feature
  • Refactoring
  • Documentation
  • Other

🚫 Build Artifacts Check

Please confirm:

  • [x ] I did NOT commit /client/dist
  • [x ] I did NOT commit generated Angular build output
  • Only source files are included

🔍 Checklist

  • Code follows project coding standards
  • I tested my changes locally
  • Documentation updated if required
  • Issue opened (for major changes)

📚 Documentation Checklist (if applicable)

  • The documentation builds locally with mkdocs serve
  • All links were tested
  • Images use relative paths (e.g. images/example.png)
  • No references to the old GitHub Wiki
  • Navigation updated in mkdocs.yml (if required)

📝 Additional Notes

  • UNS uniqueness validation is enforced in the UI against other tags in the same device.

@unocelli
Copy link
Member

unocelli commented Mar 1, 2026

@CuAuPro Thank you very much for the QuestDB + UNS work, this is a great direction.

I reviewed #2220 as merge target (it includes #2213) and I have one merge-readiness request:

  1. Please make QuestDB backend loading runtime-safe when packages are not installed (guarded import + safe handling/fallback), so users not using QuestDB remain fully compatible.

Minor UI note (optional): in QuestDB settings, please use an explicit QuestDB host label instead of the SMTP host label.

With this adjustment, this looks very good to merge.

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