mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-24 03:12:07 +00:00
profiles: deterministic setting_id from vendor/type/name (#14432)
* profiles: enforce globally-unique, per-vendor-namespaced setting_id Many non-Bambu vendors copied Bambu's generic setting_ids (GFSA04 alone appeared in 1557 files), so setting_id was not globally unique. This namespaces every vendor's ids and reserves Bambu/OrcaFilamentLibrary space. - Reserve "G*" (Bambu) and "O*" (OrcaFilamentLibrary) id spaces. - Assign each other vendor a 2-char prefix (first+last letter, collision resolved) and renumber every instantiated preset to <PREFIX><NNNN>. - Strip setting_id from base profiles (instantiation:false) per Bambu's convention; assign one to instantiated presets that lacked it. - Remove the pre-existing misspelled "settings_id" key (91 files). - filament_id is left untouched (it is a per-material id). - Add one-time migration script scripts/assign_vendor_setting_ids.py with a persisted registry resources/profiles/vendor_prefixes.json. Re-runs freeze existing ids; only new vendors/profiles get new ids. - Bump version in each changed vendor index file. - Extend scripts/orca_extra_profile_check.py with a CI guard: global uniqueness, in-namespace, no base setting_id, no gaps, no settings_id typo. 7425 profile files changed across 61 vendors; 0 cross-vendor collisions; validator clean; migration idempotent. BBL and OrcaFilamentLibrary id spaces untouched. * profiles: add setting_id authoring guide for new vendors / profiles * profiles: drop in-repo README; setting_id guide now lives in the wiki * profiles: derive setting_id deterministically from vendor/type/name * bump profile version
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS Pro S100 0.4 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "G7HQgaspHXduDM8O",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM001",
|
||||
"printer_model": "BLOCKS Pro S100",
|
||||
"default_print_profile": "0.20mm Standard 0.4 nozzle @Blocks",
|
||||
"max_layer_height": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS Pro S100 0.6 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "XkWdS210oUMQN17N",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM002",
|
||||
"printer_model": "BLOCKS Pro S100",
|
||||
"default_print_profile": "0.30mm Standard 0.6 nozzle @Blocks",
|
||||
"max_layer_height": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS Pro S100 0.8 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "I6PdeCS7SbvIlkZf",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM003",
|
||||
"printer_model": "BLOCKS Pro S100",
|
||||
"default_print_profile": "0.40mm Standard 0.8 nozzle @Blocks",
|
||||
"max_layer_height": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS Pro S100 1.0 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "elLdUyy9RhUoa37o",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM004",
|
||||
"printer_model": "BLOCKS Pro S100",
|
||||
"default_print_profile": "0.50mm Standard 1.0 nozzle @Blocks",
|
||||
"max_layer_height": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS Pro S100 1.2 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "xtsGSJ4JkbHTPi44",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM005",
|
||||
"printer_model": "BLOCKS Pro S100",
|
||||
"default_print_profile": "0.60mm Standard 1.2 nozzle @Blocks",
|
||||
"max_layer_height": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS RD50 V2 0.4 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "wItS0IoWbzTJK7iD",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM006",
|
||||
"printer_model": "BLOCKS RD50 V2",
|
||||
"default_print_profile": "0.20mm Standard 0.4 nozzle @Blocks_RD50_V2",
|
||||
"max_layer_height": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS RD50 V2 0.6 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "3oE6MbdWA6AzYAa5",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM007",
|
||||
"printer_model": "BLOCKS RD50 V2",
|
||||
"default_print_profile": "0.26mm Standard 0.6 nozzle @Blocks_RD50_V2",
|
||||
"max_layer_height": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS RD50 V2 0.8 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "g04N8FbsS1P92qZA",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM008",
|
||||
"printer_model": "BLOCKS RD50 V2",
|
||||
"default_print_profile": "0.38mm Standard 0.8 nozzle @Blocks_RD50_V2",
|
||||
"max_layer_height": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS RF50 0.4 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "icpImzXl3Xx16srx",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM009",
|
||||
"printer_model": "BLOCKS RF50",
|
||||
"default_print_profile": "0.20mm Standard 0.4 nozzle @Blocks_RF50",
|
||||
"max_layer_height": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS RF50 0.6 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "RIbar6niHpubv5IC",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM010",
|
||||
"printer_model": "BLOCKS RF50",
|
||||
"default_print_profile": "0.26mm Standard 0.6 nozzle @Blocks_RF50",
|
||||
"max_layer_height": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "BLOCKS RF50 0.8 nozzle",
|
||||
"inherits": "fdm_klipper_common",
|
||||
"from": "system",
|
||||
"setting_id": "YTckxiK7XiR4GfOJ",
|
||||
"instantiation": "true",
|
||||
"settings_id": "GM011",
|
||||
"printer_model": "BLOCKS RF50",
|
||||
"default_print_profile": "0.38mm Standard 0.8 nozzle @Blocks_RF50",
|
||||
"max_layer_height": [
|
||||
|
||||
Reference in New Issue
Block a user