Problem/Motivation

Color module relies on the Farbtastic library, and Color is deprecated in Drupal 9.5 and removed in Drupal 10. The library will be deprecated in #3306208: Deprecate farbtastic in 9.5.x so we can remove it in Drupal 10.

Steps to reproduce

Proposed resolution

Remove the library and remove or refactor all references to it.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

The farbtastic library has been removed from Drupal core. There is no replacement.

Issue fork drupal-3306210

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

longwave created an issue. See original summary.

andypost’s picture

Status: Active » Postponed
Related issues: +#3306208: Deprecate farbtastic in 9.5.x

Blocked on deprecation

mondrake’s picture

IMHO the Color contributed module should add the library as its own implementation before removing from core; if not the Color module, a contrib module of its own kinda the jQueryUI modules. Image Effects has a dependency to this library, and just removing from core would raise the point of finding/implementing a replacement; I assume more contrib might end up in the same predicament.

spokje’s picture

Title: Remove Farbtastic library from core » [PP-1] Remove Farbtastic library from core
Assigned: Unassigned » spokje

Now postponed on #3306607: Add farbtastic library to color module because it was deprecated in core 9.5 so contrib has a replacement for this library.

spokje’s picture

Tagging

spokje’s picture

After the deletion there are three references to farbtastic left, two in the color.admin.css-files of stable and stable9.
As far as I know we keep (P)CSS files for deleted modules/libraries in themes that are nominated for deprecation/removal. Which is why the color module related CSS files are left after the deletion of the color module in the first place.

The third is in dictionary.txt from cspell and is caused by the two references explained above.

quietone’s picture

Added change record.

spokje’s picture

Thanks @quietone.

In other news: stable and stable9 are (most probably) _not_ on their way out of D10, meaning that templates/CSS files for removed modules/assets should be removed: https://drupal.slack.com/archives/C014CT1CN1M/p1662002475998399

To me it make sense to remove the left-over CSS files for the Color module (which contain the farbtastic references) in a separate issue.
Which I created here: #3307225: Remove leftover templates/CSS files from removed modules/assets from Stable 9

catch’s picture

Status: Postponed » Needs review
catch’s picture

Title: [PP-1] Remove Farbtastic library from core » Remove Farbtastic library from core
spokje’s picture

Love the enthusiasm, but I think technically this is still postponed on having a contrib replacement (which looks like it's going to be in the contrib color module #3306607: Add farbtastic library to color module because it was deprecated in core 9.5) and the removal of leftover templates/css/stuff from stable/stable9 (#3307225: Remove leftover templates/CSS files from removed modules/assets from Stable 9)

spokje’s picture

Assigned: spokje » Unassigned

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

nod_’s picture

missing a bit in vendor-update, other than that, all good for me.

spokje’s picture

Thanks @nod, would never have spotted that.

quietone’s picture

Issue tags: -Needs change record

I forgot to remove the tag when I added the CR.

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

quietone’s picture

Status: Needs review » Needs work

I applied the MR locally and grepped for farbtastic and some instances were discovered.

git grep -i farbtastic
core/misc/cspell/dictionary.txt:farbtastic
core/themes/stable/css/color/color.admin.css:.farbtastic {
core/themes/stable9/css/color/color.admin.css:.farbtastic {
spokje’s picture

Title: Remove Farbtastic library from core » [PP-2] Remove Farbtastic library from core

Thanks @quietone

Per #12 this one _should_ have been on Postponed on #3307225: Remove leftover templates/CSS files from removed modules/assets from Stable 9 and #3306607: Add farbtastic library to color module because it was deprecated in core 9.5. (It is now...)

Your (correct) remarks should be fixed after #3307225: Remove leftover templates/CSS files from removed modules/assets from Stable 9 lands and we throw in another yarn spellcheck:make-drupal-dict in this issue

spokje’s picture

Status: Needs work » Postponed
tim.plunkett’s picture

Issue tags: +10.0.0 release notes
wim leers’s picture

Per @xjm.

nod_’s picture

Title: [PP-2] Remove Farbtastic library from core » [PP-1] Remove Farbtastic library from core
wim leers’s picture

nod_’s picture

Issue summary: View changes
Status: Postponed » Reviewed & tested by the community
Issue tags: -Needs release note

MR seems complete, associated contrib issue is going well so marking this one RTBC.

wim leers’s picture

The test is failing with:

/var/www/html/core/modules/ckeditor5/js/ckeditor5.js
  7:1  error  Delete `⏎`  prettier/prettier

✖ 1 problem (1 error, 0 warnings)
  1 error and 0 warnings potentially fixable with the `--fix` option.


eslint: failed

… even though that file is not touched here. 🤯

EDIT: @Spokje already spotted that and opened #3309800: /core/modules/ckeditor5/js/ckeditor5.js fails JS linting for it, which was committed as we speak! 👍

Re-testing… EDIT: I can't because it's not mergeable, probably because of #3309800 🙃 I'm sure @Spokje is already pushing the merge commit that will trigger a re-test, so … doing nothing!

spokje’s picture

Status: Reviewed & tested by the community » Needs review
nod_’s picture

Status: Needs review » Reviewed & tested by the community

I'm optimistic that will come back green. Associated contrib issue is green too #3306607: Add farbtastic library to color module because it was deprecated in core 9.5

wim leers’s picture

Title: [PP-1] Remove Farbtastic library from core » Remove Farbtastic library from core

Given that the contrib issue #3306607: Add farbtastic library to color module because it was deprecated in core 9.5 is RTBC, marking this as unpostponed.

(Contrib modules of removed core modules need to catch up with core; we didn't delay committing issues that broke contrib Quick Edit either.)

spokje’s picture

The CR is stating:

To continue using farbtastic you can download it from the repository or from asset-packagist.

.

Should we mention the contrib Color module? Should we give a link to "the repository" mentioned now?

quietone’s picture

Yes, that makes sense to me as it was in core for Color.

  • catch committed ea2ae9c on 10.0.x
    Issue #3306210 by Spokje, nod_, Wim Leers, quietone, longwave, lauriii:...
  • catch committed cd5e9ab on 10.1.x
    Issue #3306210 by Spokje, nod_, Wim Leers, quietone, longwave, lauriii:...
catch’s picture

Status: Reviewed & tested by the community » Fixed

The color module issue just got committed, so we can go ahead here.

Committed/pushed to 10.1.x and cherry-picked to 10.0.x, thanks!

quietone’s picture

I've been chatting with @Spokje and I no longer think it it necessary to add info about Color to the CR. Essentially, I missed that #3306607: Add farbtastic library to color module because it was deprecated in core 9.5 existed.

I published the CR.

Status: Fixed » Closed (fixed)

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