Skip to content

MODEXPS-326 - Show CSV output type for CSV orders export jobs - #395

Merged
markusweigelt merged 3 commits into
masterfrom
MODEXPS-326
Nov 25, 2026
Merged

markusweigelt merged 3 commits into
masterfrom
MODEXPS-326

Conversation

@markusweigelt

@markusweigelt markusweigelt commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

MODEXPS-326 - Show CSV output type for CSV orders export jobs

Purpose

When a vendor integration exports orders with fileFormat: CSV, the finished job in Export manager shows Output type "EDIFACT orders export (EDI)". JobServiceImpl fills a blank outputFormat from a map keyed only by ExportType, and CSV and EDI orders exports share EDIFACT_ORDERS_EXPORT. ui-export-manager prints outputFormat as stored, so the fix is backend only.

Approach

  • An EDIFACT_ORDERS_EXPORT job whose vendorEdiOrdersExportConfig.fileFormat is CSV gets "Comma-Separated Values (CSV)" (same text as CIRCULATION_LOG jobs).
  • A preset outputFormat is kept and existing job rows are not migrated, so CSV jobs that already ran still show "(EDI)". Reruns create a new job and get the correct label. (CSV ordering export is currently not in the release)
  • NEWS.md: bug fix entry.

The output type was looked up by export type only, so CSV orders exports
were labelled "EDIFACT orders export (EDI)". A blank output type of an
orders export job with file format CSV is now "Comma-Separated Values (CSV)".
@markusweigelt
markusweigelt requested review from a team and SerhiiNosko November 18, 2026 10:10
return result;
}

private static String resolveOutputFormat(Job job) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

these methods should not be static

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

From my understanding, resolveOutputFormat and isCsvOrdersExport only use their Job argument and the static fields OUTPUT_FORMATS and CSV_ORDERS_EXPORT. That's also how I interpret Sonar rule java:S2325 ("Private and final methods that don't access instance data should be static").

So, to me, making these methods static seems to align with the rule. Could you share a bit more about your reasoning? I’d like to better understand your point of view. 🙂

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

as for me static is more for utility classes, and here is just service and this method is invoked by non-static method

@markusweigelt markusweigelt Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thx! I'll make the change and hopefully Sonar will pass. If not, I'll roll it back. 🙂

@sonarqubecloud

Copy link
Copy Markdown

@markusweigelt
markusweigelt merged commit f24f61b into master Nov 25, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants