Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importer: Rename Output->Related Document and link doc for errored rows #855

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cds_ils/importer/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ def importer_exception_handler(
exc, log_id, record_recid, json_data=None, *args, **kwargs
):
"""Handle importer exception."""
report = {"raw_json": json_data}
if hasattr(exc, "record_id"):
report["output_pid"] = exc.record_id
sakshamarora1 marked this conversation as resolved.
Show resolved Hide resolved
ImportRecordLog.create_failure(
log_id, record_recid, str(exc.description), report={"raw_json": json_data}
log_id, record_recid, str(exc.description), report=report
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class ImportedTable extends React.Component {
Action
</Table.HeaderCell>
<Table.HeaderCell collapsing rowSpan="3">
Output document
Related document
Copy link
Contributor

@jrcastro2 jrcastro2 Mar 1, 2024

Choose a reason for hiding this comment

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

Comment: If this change was discussed with the library then it's good to me. Otherwise be aware that this will affect to correclty processed records as well.
I would check with them before, if not already done.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was discussed! 😄

</Table.HeaderCell>
<Table.HeaderCell collapsing colSpan="4">
Dependent records
Expand Down
Loading