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

Remove code to strip spaces from pg filenames when imported .def files #2570

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dlglin
Copy link
Member

@dlglin dlglin commented Sep 10, 2024

This is to address #2563. I have tested with def files exported from 2.17.

I haven't checked if this works on the old format for .def files, but they haven't been used in many years.

@dlglin dlglin linked an issue Sep 10, 2024 that may be closed by this pull request
@Alex-Jordan
Copy link
Contributor

This works, and I did testing of other things with spaces in a PG filename and found no issues. But I have two comments:

  • Should you remove the comment right above this line too? I think that comment applies only to this line that is being removed.
  • I haven't tried a version 1 set definition file, but as I read the code, it seems that removing lines 521-523 would be the corresponding change.

@drgrice1
Copy link
Member

@Alex-Jordan: I think that the comment applies to the other things that are validated and cleaned up as well on the lines that follow.

As to doing the same for version 1 set definition files, if that is done, then should the file name still be trimmed? That is leading and trailing spaces removed? That is done for version 2 set definition files on lines 552 and 553.

Although, perhaps it is time to think about removing support for version 1 set definition files. The only version 1 set definition files that I know of have now been removed from the OPL.

Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

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

I think this looks good.

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.

Importing a set definition file removes spaces from source_file
5 participants