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

Fix/160 invalid date format on import csv #7525

Merged
merged 15 commits into from
Dec 16, 2024

Conversation

Joao-vi
Copy link
Collaborator

@Joao-vi Joao-vi commented Dec 4, 2024

This pull request was created based on this [issue] (https://github.com/huridocs/Internal-Issues/issues/160)

Problem

We were not respecting the date format, defined at settings -> collections, to import Dates in the translated versions of the Entities.

@Joao-vi Joao-vi requested a review from daneryl December 4, 2024 17:44
@Joao-vi Joao-vi self-assigned this Dec 4, 2024
@Joao-vi Joao-vi requested a review from RafaPolit December 4, 2024 17:52
Comment on lines 1 to 3
/* eslint-disable no-await-in-loop */
/* eslint-disable no-unreachable-loop */
/* eslint-disable no-restricted-syntax */
Copy link
Member

Choose a reason for hiding this comment

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

We really cannot put exceptions to es-lints like this. The fact that this practice has happened before should not be followed these days. So, please, remove this exceptions and lets fix the code to not have these eslint warnings:
To solve this, please create a reduce with an async callback.

Also, the no-unreachable-loop is not really solving any warning, so this was probably a previous version of the code which is no longer present, all the more reason not to include this exceptions that can later be left in the header of the file and we end up with code that is against our own guidelines.

@Joao-vi Joao-vi merged commit aa81851 into production Dec 16, 2024
17 of 18 checks passed
@Joao-vi Joao-vi deleted the fix/160-invalid-date-format-on-import-csv branch December 16, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants