question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TechDocs: Use lowercase entity kind, namespace and name in URLs

See original GitHub issue

Feature Suggestion

When you open a TechDocs page like https://demo.backstage.io/docs/default/Component/backstage

The entity namespace (e.g. default) and kind (e.g. Component) and name should be in lowercase.

Possible Implementation

Look at /catalog plugin for inspiration.

https://github.com/backstage/backstage/blob/8e1c7be11c916d95e9281914b98c59a79d0a1ada/plugins/catalog-react/src/routes.ts#L39-L46

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
iamEAPcommented, Jul 8, 2021

We took a look at this and here’s our proposed path forward…

  1. Create a migration utility (most likely a command in techdocs-cli) that will copy any objects in storage from case-sensitive triplet paths to lower-case triplet paths.
  2. This migration utility will rely on a new method added to the PublisherBase signature (perhaps called migrateDocsCase or similar) which handles the logic on a per-storage provider basis. (We may want to publish this in TechDocs common, followed by the techdocs-cli first, to allow time to advertise the change to the community and resolve any issues in the migration command)
  3. We’ll then update all publishers’ publish and docsRouter methods to lowercase the entity triplet at read/write time. In the release notes in this PR, we’ll advise those who use external storage/generation solutions to run the techdocs-cli migration command prior to rolling out the release. (As noted previously in this issue, folks running local generation will be unaffected)

One additional annoyance: MacOS’s file system is case insensitive by default, so testing this locally on a Mac is challenging.

1reaction
adamdmharveycommented, Feb 3, 2021

Closure of this potentially also closes https://github.com/backstage/backstage/issues/2269

Read more comments on GitHub >

github_iconTop Results From Across the Web

TechDocs How-To guides - Backstage.io
Follow the detailed instructions for using cloud storage in TechDocs. ... with case-insensitive entity triplet paths (e.g. /docs/namespace/kind/name whereas ...
Read more >
Defining Entity Type Attributes - TechDocs
This article defines entity type attributes.
Read more >
Extend the Ed-Fi ODS / API - Student Transportation Example
This example uses MetaEd to generate extended artifacts and documentation. ... Folders are generally named after their entity type.
Read more >
Installation parameters - Technical Documentation For IFS ...
the installer will use the "enabled" value of the parameter ifsappproxy.accessLog and "1" of the global.replicas since that was passed as a "--set"...
Read more >
Tanzu Application Platform v1.1 | VMware Docs
Find the catalog locations and their entities' namespace/kind/name. 637. Use the TechDocs CLI to generate and publish TechDocs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found