Skip to content

DOCS-3693: Update module and namespace renaming #4418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

promptless[bot]
Copy link
Contributor

@promptless promptless bot commented Jun 27, 2025

Update documentation to reflect the new functionality that allows users to rename modules and organization namespaces through the Viam web interface. This replaces the previous requirement to contact support for module renaming and adds new namespace renaming capabilities.

Key Updates Needed:

  1. Module Renaming: Replace the current instruction to contact support with documentation of the new "Rename" option in the 3-dot menu on module pages
  2. Namespace Renaming: Add new section documenting the "Rename" button on organization settings page for changing organization namespaces
  3. Backwards Compatibility: Document that old names are reserved for backwards compatibility and cannot be reused
  4. Limitations: Document the 5-namespace limit per organization and when renaming is/isn't available

Scope Description from User:

  • Module renaming via 3-dot menu dropdown on module pages (app.viam.com/module/namespace/module-name)
  • Organization namespace renaming via organization settings page (app.viam.com/organization/org-id/settings)
  • Old names forever reserved for backwards compatibility
  • Organizations limited to 5 namespaces to prevent abuse
  • Existing configs continue working without migration needed
  • Machine builder uses most recent names for new machines

Trigger Events


If you want Promptless to make further changes on this PR, feel free to leave a comment tagging Promptless (It won't show up in the user drop down but Promptless will get it!)

Copy link

netlify bot commented Jun 27, 2025

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 6509d46
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/6865b8dc2ac52b0008b257b7
😎 Deploy Preview https://deploy-preview-4418--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 54 (🔴 down 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@CLAassistant
Copy link

CLAassistant commented Jun 27, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ JessamyT
❌ promptless[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor Author

promptless bot commented Jun 27, 2025

Just a reminder: If you'd like me to act on any feedback you have via Github comments, just type @Promptless in your suggestion and I'll get right on it! (I won't show up in the user dropdown, but I'll process any request that has @Promptless in the comment body.)

@viambot
Copy link
Member

viambot commented Jun 27, 2025

👋 Thanks for contributing! A reviewer will look at it on the next working day!

Copy link
Member

@nathan-contino nathan-contino left a comment

Choose a reason for hiding this comment

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

This could use some structural improvements and fact-checking.

1. Click the **Rename** button next to your current namespace.
1. Enter the new namespace name in the modal that appears.
1. Click **Set namespace** to confirm the change.
1. For each module your organization owns, update the module code and <file>meta.json</file> to reflect the new namespace.
Copy link
Collaborator

@JessamyT JessamyT Jul 2, 2025

Choose a reason for hiding this comment

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

@michaellee1019 questions:

  1. If this is recommended (per scope) but not required, why not?
    a. If you push updates to a module without updating namespace, does it break things?
  2. Scope doc only mentions public modules. What about private modules?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you answered 1 in the scope google doc convo. For Nathan/other reviewer transparency:
Yes it breaks things if you make changes to the module code w/o updating the namespace, so it's better to just update it when you change the namespace so you don't run into weird problems later


When you rename a namespace, Viam reserves the old namespace for backwards compatibility and you cannot reuse it.

Machine configurations that reference the old namespace will continue to work.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@michaellee1019 Here https://docs.viam.com/operate/get-started/other-hardware/manage-modules/#transfer-ownership-of-a-module we say

Update the model field in the configuration of any machines that use the module to use the new organization’s namespace.

But is this no longer necessary after this eng work?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Per scope doc comment convo, I guess it was never necessary just recommended. I've added a fix to this PR.

@JessamyT JessamyT requested a review from nathan-contino July 2, 2025 22:50
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.

4 participants