8000 Fixes bug when using user-provided filenames in admin export by cmgrote · Pull Request #2078 · atlanhq/atlan-java · GitHub
[go: up one dir, main page]

Skip to content

Fixes bug when using user-provided filenames in admin export#2078

Merged
cmgrote merged 2 commits intomainfrom
APP-9831
Nov 17, 2025
Merged

Fixes bug when using user-provided filenames in admin export#2078
cmgrote merged 2 commits intomainfrom
APP-9831

Conversation

@cmgrote
Copy link
Collaborator
@cmgrote cmgrote commented Nov 17, 2025

Note

Ensures admin-export touches default-named files even when custom filenames are used, adds term/column link helpers, and updates several dependencies.

  • Admin Export:
    • Touches default output files (admin-export.xlsx, users.csv, groups.csv, personas.csv, purposes.csv, policies.csv) alongside user-provided filenames to avoid workflow failures.
  • Runtime Utils:
    • Adds getTermLink(client, guid) for glossary URLs.
    • Adds getColumnLink(client, tableGuid, guid) to deep-link directly to a column via ?column=.
  • Dependencies:
    • Version bumps: wiremock -> 3.13.2, awssdk -> 2.38.7, poi -> 5.5.0, commons-lang -> 3.20.0, openlineage -> 1.40.1, jetty -> 12.1.4.

Written by Cursor Bugbot for commit d89e5d8. This will update automatically on new commits. Configure here.

Signed-off-by: Chris (He/Him) <cgrote@gmail.com>
@cmgrote cmgrote added the bug Something isn't working label Nov 17, 2025
Signed-off-by: Chris (He/Him) <cgrote@gmail.com>
Copy link
@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: CSV Export: Unwanted Empty Files

When using CSV format, all five CSV files are unconditionally added to fileOutputs, regardless of which objects are specified in ctx.config.objectsToInclude. This causes empty CSV files to be sent via email or uploaded to cloud storage for objects that weren't requested for export.

samples/packages/admin-export/src/main/kotlin/com/atlan/pkg/ae/AdminExporter.kt#L98-L99

"personas" -> CSVWriter(personasFileActual.toString()).use { csv -> Personas(ctx, csv, glossaryMap, connectionMap, logger).export() }
"purposes" -> CSVWriter(purposesFileActual.toString()).use { csv -> Purposes(ctx, csv, logger).export() }

Fix in Cursor Fix in Web


@cmgrote cmgrote merged commit e5c873c into main Nov 17, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0