Closed Bug 2075412 Opened 2 months ago Closed 1 month ago

Update AITab slug creation method, and id conflict handling

Categories

(Core :: Machine Learning: Frontend, enhancement, P2)

enhancement
Points:
1

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: rrando, Assigned: mlucks)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiaug])

Attachments

(1 external file)

The 'slug' is a URL component seen in the address bar by the user. It uniquely identifies a page.
The page title is lower-cased and spaces are converted to _ to create the slug.
Currently we're appending '_1' '_2' on identical slug names to find a unique one all the way up to 50, then picking a random slug id.

Change to make:
Make default slug divider '-' rather than '_'

If we see a conflict in the name, we should first append the date (in YYYYMM DD format '2026-02-23') then the _1 , _2 etc if the date is taken

so we would have
cool-project
cool-project_2026-02-23
cool-project_2026-02-23_1
cool-project_2026-02-23_2
cool-project_2026-02-23_3
etc etc.

Summary: Update AITab slug selection method → Update AITab slug selection method when handling conflicts

From a UX perspective, I like that the URL stays understandable rather than becoming arbitrary.

A couple of small preferences:

  • Use the full year: YYYY_MM_DD, rather than YY_MM_DD
  • Use hyphens to separate words in the page name, and underscores to separate qualifiers

So the pattern would be:

cool-project
cool-project_2026-02-23
cool-project_2026-02-23_1

Blocks: 2055912
Summary: Update AITab slug selection method when handling conflicts → Update AITab slug creation method, and id conflict handling
Whiteboard: [aiaug]
Assignee: nobody → mlucks
Severity: -- → S3
Points: --- → 2
Priority: -- → P2
Points: 2 → 1
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: