Repository navigation
feat(csv-import-export): server side for CSV import and export - #66
Merged
fbritoferreira merged 10 commits intoOct 9, 2026
Merged
Conversation
…lient, list job config in history
…missions, hide private attributes, tie batches to their job userAbility.can(action, uid) ignores field limits and rule conditions. Checks now run against a stand-in entry with the request's locale, once per mapped or exported field, so field-level and i18n locale limits apply and creator-only roles are refused. Linking or exporting a relation by a target field needs read permission on that field of the target collection. Private attributes are no longer importable, exportable or usable as relation match fields. Real imports must name a running import job owned by the caller. Cells the export prefixed with ' before a formula character are read back without the quote, so exports round-trip.
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Contributor
Coverage Report for Test Coverage Report
File CoverageNo changed files found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Server half of the CSV import/export plugin. Stacked on #65. The package stays private.
Permissions:
ability.can(action, uid)on a bare type ignores field limits and rule conditions, so every check runs against a stand-in entry{ locale }, once per field. Field-level and i18n locale limits apply; roles limited by "is creator" are refused.Export returns
{ data: { fileName, rowCount, csv } }rather than atext/csvattachment:useFetchClient().postin @strapi/admin 5.57 ignoresresponseTypeand always parses JSON.Evidence
After: 105 tests pass (
pnpm --filter @fbritoferreira/strapi-csv-import-export test); lint, typecheck, build,package:checkpass; smoke printssmoke ok: tarball loads, 8 routes registered.demo/(PR 4): first importcreated 2, updated 1, second importcreated 0, updated 3; a role limited totitleexportstitlewith 200 andviewswith 403.Merge Danger
Door: two-way
Blast Radius: none
Private package. The job content type only exists in apps that enable the plugin, which nothing does until PR 4's demo.