Skip to content

Conversation

@asazallesmilner
Copy link

No description provided.

Asa Zalles-Milner added 2 commits October 20, 2025 09:54
- Try meaningful filenames first (using attributes.title/name)
- Detect when jsrmx fails to create files due to invalid filename characters
- Automatically fall back to sequential numbering when needed
- Resolves 'No such file or directory' errors for objects with special chars like [, ], &
- Maintains user-friendly filenames when possible while ensuring reliability

Fixes issue where large dashboards with special characters in titles
(e.g., '[Elasticsearch] Dashboard & View') would fail to unbundle properly.
- Change from all-or-nothing fallback to per-object processing

- Preserve meaningful names for objects with valid characters

- Only apply sequential numbering to specific failed objects

- Extract failed objects to temporary file and process separately

Before: If any object had invalid filename chars, ALL objects got sequential names

After: Only objects with invalid chars get sequential names (e.g., & * : , parentheses)

Results: ~82% of objects retain meaningful filenames while problematic ones

get reliable sequential numbering (object-000X.type.json)

Improves user experience by maximizing filename readability while maintaining

reliability for objects with filesystem-incompatible characters.
@VimCommando
Copy link
Owner

Hmm... this is a valid concern, but I'm not sure I agree with the approach.

If it is possible to create dashboard titles with characters that are invalid for filenames, I think this is better fixed in jsrmx proper. The unbundling shouldn't allow invalid characters in the files it is creating, as this sounds like a bug.

@VimCommando
Copy link
Owner

Created VimCommando/jsrmx#9

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