Case-insensitivity of catalog IDs #90541

Closed
opened 2021-08-09 13:09:29 +02:00 by Sybren A. Stüvel · 13 comments

Catalog IDs are intended to be simple, human-readable identifiers for a node in the catalog tree. For simpicity I think it's a good idea to have these case-insensitive.

A few options for technical implementations:

  • Always store catalog IDs as input by the user (and compare both sides of a comparison to lower case every time), or
  • always store catalog IDs as lower/upper case (and thus always compare the same case without having to do lowercasing every time).

I'm in favour of the first one, as that gives the most flexibility to artists.

Catalog IDs are intended to be simple, human-readable identifiers for a node in the catalog tree. For simpicity I think it's a good idea to have these case-insensitive. A few options for technical implementations: - Always store catalog IDs as input by the user (and compare both sides of a comparison to lower case every time), or - always store catalog IDs as lower/upper case (and thus always compare the same case without having to do lowercasing every time). I'm in favour of the first one, as that gives the most flexibility to artists.
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Member

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

Added subscriber: @antoniov

Added subscriber: @antoniov

As a Windows user, for me is more logic the Case Insensitivity. I know in Linux case matters, but in windows don't.

As a Windows user, for me is more logic the Case Insensitivity. I know in Linux case matters, but in windows don't.
Author
Member

@antoniov You make a good point. In Windows you can't reliably change the case of a filename (so thename.txtTheName.txt); it might error out saying "This file already exists". This is something I want to avoid. My perspective on this is that people are intrinsically case-sensitive, they just don't want to care about it.

@antoniov You make a good point. In Windows you can't reliably change the case of a filename (so `thename.txt` → `TheName.txt`); it might error out saying "This file already exists". This is something I want to avoid. My perspective on this is that people are intrinsically case-sensitive, they just don't want to care about it.
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

I would keep the casing to what the user entered. This will keep it readable when using pascal casing for example. And just convert to one casing when checking.

I would keep the casing to what the user entered. This will keep it readable when using pascal casing for example. And just convert to one casing when checking.
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

The catalog name that is displayed in the UI should use whatever case the user entered. E.g. entering "AbC DeF" should display the exact same way. When renaming it to "Abc Def" that should just work.
For comparisons and for writing the CATALOG_ID to the catalog definition files, it can just be converted to a lower-case format, e.g. abc-def. Or at least the case shouldn't matter for internal logic.

The catalog name that is displayed in the UI should use whatever case the user entered. E.g. entering "AbC DeF" should display the exact same way. When renaming it to "Abc Def" that should just work. For comparisons and for writing the `CATALOG_ID` to the catalog definition files, it can just be converted to a lower-case format, e.g. `abc-def`. Or at least the case shouldn't matter for internal logic.

I agree to keep case typed by user... I'm talking only internally for checking.

I agree to keep case typed by user... I'm talking only internally for checking.

Maybe is something that never happens in these programming languages, but I had in the past some problems changing/comparing case in databases with different languages (character sets)...specially when using non Western Languages. I mean, for example, saving a catalog in a Russian system and open it in a Spanish one. I write this note to be sure we test that.

Maybe is something that never happens in these programming languages, but I had in the past some problems changing/comparing case in databases with different languages (character sets)...specially when using non Western Languages. I mean, for example, saving a catalog in a Russian system and open it in a Spanish one. I write this note to be sure we test that.
Member

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Member

Closing this now, since it's become obsolete with #91378 (Use UUIDs for Catalog IDs).

Closing this now, since it's become obsolete with #91378 (Use UUIDs for Catalog IDs).
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#90541
No description provided.