Problem/Motivation

The Project object's categories property is very poorly defined. The intention, based on my reading of the Svelte code, is that it's meant to be an array like [$some_id => ['name' => 'Foo'], ...], but that's overcomplicated and weird.

Proposed resolution

Formally define Project::$categories as a simple associative array. The keys are category IDs (int or string), and the values are strings with the human-facing name of that category. We'll need to adjust the Svelte code to match, and likely a couple of sources will need some minor changes for this too.

Since this is an API refinement (although not exactly a "change"), it is a stable blocker.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

phenaproxima created an issue. See original summary.

phenaproxima’s picture

Status: Active » Needs review
phenaproxima’s picture

Confirmed that this should cherry-pick cleanly to 2.0.x.

chrisfromredfin made their first commit to this issue’s fork.

chrisfromredfin’s picture

Status: Needs review » Fixed

merged and clean cherry-pick to 2.0.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.