- Issue created by @phenaproxima
- π¬π§United Kingdom alexpott πͺπΊπ
Nice find. Definitely should happen. But when there are recipes with the same name but different paths that's quite interesting...
- πΊπΈUnited States phenaproxima Massachusetts
Why is that interesting, though?
The human-readable name is just that -- a human-readable name. In combination with the
type
key, there's nothing obviously special about it. It can be as descriptive -- or, more likely, undescriptive -- as the recipe author wants. There are no guidelines, and certainly no rules, about uniqueness (if there, we'd need to explicitly validate the name's uniqueness, at the very least).Recipes are really only uniquely identified by their path. Since they are not extensions, it would be legal for them to have the same directory name (machine name). Since the code in question needs to identify recipes unambiguously, the path seems like the cleanest way to do that. (We could also hash the contents of
recipe.yml
but that might be overkill.) - π¬π§United Kingdom alexpott πͺπΊπ
It's interesting because when we list recipes in the project browser what's going to happen?
- Status changed to Needs review
7 months ago 4:55pm 30 April 2024 - Status changed to Needs work
7 months ago 1:49pm 1 May 2024 - πΊπΈUnited States phenaproxima Massachusetts
This looks like what we agreed on.
The only thing I think is commit-blocking here is a strongly explained reason why discovery is not centralized, and why core is special-cased. Without that, someone (maybe one of us) is liable to come back to this code in a couple of years and try to add dynamic path resolution or other stuff which would break the intention here.
We're intentionally limiting it as a reasoned design decision, so we need to be absolutely 1000% crystal-clear that the decision is explained.
- Status changed to Needs review
7 months ago 2:24pm 1 May 2024 - π¬π§United Kingdom alexpott πͺπΊπ
I've resolved all the MR threads, apart from two - one of which I don't think we should do - the other is actually unrelated and should get it's own issue.
- Status changed to RTBC
7 months ago 3:37pm 1 May 2024 - πΊπΈUnited States phenaproxima Massachusetts
Alright, I think this solves the problem reasonably well. Let's ship it.
- π¬π§United Kingdom alexpott πͺπΊπ
Committed and pushed 6895717bf08 to 11.x and 8af521051eb to 10.3.x. Thanks!
-
alexpott β
committed 8af52105 on 10.3.x
Issue #3444241 by alexpott, phenaproxima: Recipe disambiguation of...
-
alexpott β
committed 8af52105 on 10.3.x
- Status changed to Fixed
7 months ago 3:41pm 1 May 2024 -
alexpott β
committed 6895717b on 11.x
Issue #3444241 by alexpott, phenaproxima: Recipe disambiguation of...
-
alexpott β
committed 6895717b on 11.x
- 3a1d3597 committed on patch
Update recipe 11.x patch 6895717b Issue #3444241 by alexpott,...
- 3a1d3597 committed on patch
- d4b1b16a committed on patch
Update recipe 10.3.x patch 8af52105 Issue #3444241 by alexpott,...
- d4b1b16a committed on patch
Automatically closed - issue fixed for 2 weeks with no activity.