Problem/Motivation
It's not the name column in the Drupal 7 filter_format database table that determines the ID of the FilterFormat config entity, but the format column, which is an auto-incrementing integer.
Consequence: this makes any future debugging on your Drupal 8 site a pain, because rather than sensible formats such as basic_html or markdown_all_html_allowed, you get 3 or 7 as text format IDs.

Proposed resolution
Use the name column in the D7 table and apply the "machine name" algorithm to it to generate a sensible name.
Remaining tasks
TBD
User interface changes
N/A
API changes
N/A
Data model changes
More sensible D8 destination data model.
Release notes snippet
TBD
Comments
Comment #2
wim leersTurns out the test coverage in
\Drupal\Tests\filter\Kernel\Plugin\migrate\source\d7\FilterFormatTestis wrong — it does not reflect the Drupal 7 reality. 🙈This fixes the tests, without fixing the reported bug yet.
Comment #3
wim leersBased on #2555089: d7_filter_format migration mishandles format IDs, this must be happening because my Drupal 5 site updated to Drupal 7 via Drupal 6, and the Drupal 6-to-7 update path retained numerical identifiers.
That makes this a far lower priority. And it means that the patch in #2 is inaccurate.
Comment #4
wim leersComment #5
wim leersBeen told that I should put this in
migration system:)Comment #6
heddnNW per #2/#3.
Comment #7
wim leersI'm not sure there is something to do here to be honest.
Ideally, the user would be prompted or at least warned that they'll be getting
FilterFormatconfig entities with numerical IDs. Which is bad, weird, atypical, might trip up other code. But it should work okay. And I don't think the Migrate system was designed to prompt the user. So I think that the way to solve this is to generically make the migration system detect numerical IDs for any config entity it saves and log a warning. That warning should say it's recommended to modify the migration YML file, to specify a manual mapping (from e.g.1tofull_html).Thoughts?
Comment #8
heddnNow I'm re-reading this again, this brings back to mind #2620932: D7 legacy numeric text formats fail, how to map them? and #2720271: Document how to perform format mappings in D6/D7 upgrade where we decided not to map any of these numeric values to anything else.
Comment #9
wim leersThanks, that's really useful context!
Comment #17
smustgrave commentedQuestion is this still needed for D10? Feel after 5 years if still needed/
Comment #18
quietone commentedYes, sites are still migrating. This is still needed.
Comment #19
quietone commentedThe Migrate Drupal Module was approved for removal in #3371229: [Policy] Migrate Drupal and Migrate Drupal UI after Drupal 7 EOL.
This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
The deprecation work is in #3522602: [meta] Tasks to remove Migrate Drupal module and the removal work in #3522602: [meta] Tasks to remove Migrate Drupal module.
Migrate Drupal will not be moved to a contributed project. It will be removed from core after the Drupal 12.x branch is open.