Skip to content

Fixes for issues in sheet imports#104

Merged
tarekio merged 5 commits intomainfrom
sheet-import-fixes
Jun 18, 2025
Merged

Fixes for issues in sheet imports#104
tarekio merged 5 commits intomainfrom
sheet-import-fixes

Conversation

@tarekio
Copy link
Contributor

@tarekio tarekio commented Jun 11, 2025

Jira Issue

  1. [Add links to jira issues]

Description

This PR address several issues:

  • Issue to parse a single tag.
  • issue in matching dynamic event types
  • missing code to process estimated flag
  • issue in matching locations
  • Adding a check at the end for temp name

Checklist

  • Tests added/updated
  • Documentation updated (if needed)
  • New strings prepared for translations

API Changes (if applicable)

  • Permissions checked
  • Endpoint tests added

Additional Notes

[Any other relevant information]

@tarekio tarekio requested review from Copilot and level09 June 11, 2025 19:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes multiple issues related to sheet imports, including parsing single tags, matching dynamic event types and locations, processing an estimated flag, and setting a temporary actor name.

  • Modified actor name assignment from "Temp" to "TEMP".
  • Trimmed values in location matching and improved tag parsing logic.
  • Added estimated date handling and updated actor name logic based on provided name fields.
Comments suppressed due to low confidence (2)

enferno/data_import/utils/sheet_import.py:583

  • Avoid using 'type' as a variable name since it shadows the built-in function; consider renaming it to 'event_type'.
                type = event.get("type")

enferno/data_import/utils/sheet_import.py:809

  • [nitpick] Consider adding a clarifying comment to explain the logic behind resetting actor.name to an empty string or to 'UNKNOWN UNKNOWN' based on the presence of other name fields.
        if self.actor.name == "TEMP":

level09 and others added 2 commits June 11, 2025 22:29
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Collaborator

@level09 level09 left a comment

Choose a reason for hiding this comment

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

All good 👍

@tarekio tarekio merged commit c8ee1e2 into main Jun 18, 2025
6 of 7 checks passed
@tarekio tarekio deleted the sheet-import-fixes branch June 18, 2025 14:36
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.

3 participants