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

Register binary attribute in collection.xconf.xsd #5436

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

joewiz
Copy link
Member

@joewiz joewiz commented Aug 30, 2024

Description:

Closes #5432 by adding schema definitions for the field element's binary attribute in the collection.xconf.xsd schema.

Reference:

#5432

Type of tests:

n/a

@joewiz joewiz requested a review from a team as a code owner August 30, 2024 22:13
@joewiz
Copy link
Member Author

joewiz commented Aug 30, 2024

SonarCloud's failure:

Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.20.0:site (default-site) on project exist: Failed to render site: Error generating maven-surefire-report-plugin:3.5.0:report report: Cannot invoke "Object.toString()" because "value" is null -> [Help 1]

The windows-latest checks haven't failed yet; they're still going, 30 minutes after submitting the PR...

@dizzzz
Copy link
Member

dizzzz commented Aug 31, 2024

it is a recurring issue.... I guess a plugin update is needed...

@dizzzz dizzzz requested review from line-o, reinhapa and a team August 31, 2024 09:09
@duncdrum
Copy link
Contributor

@joewiz did you mean issue to link to issue 5342 in the op, I corrected that as I don't see how that would be related

@joewiz
Copy link
Member Author

joewiz commented Aug 31, 2024

@duncdrum Thanks, yes!

@dizzzz The windows-latest checks finished... after 40 minutes - wow!

Copy link
Contributor

@adamretter adamretter left a comment

Choose a reason for hiding this comment

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

In principle this is fine, but I think perhaps we should just restrict the choices to "yes" and "no" so that it is consistent with the other elements in the schema.

Copy link
Member

@line-o line-o left a comment

Choose a reason for hiding this comment

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

Thanks @joewiz for taking this on. I second @adamretter's comment that the options should be limited to yes and no for consistency.
I am writing this knowing that collection configurations that include this option do set it to true. So we need to check first if yes will be recognised by the implementation and to change the documentation accordingly.

@joewiz joewiz force-pushed the xconf-xsd-add-text-binary branch from 5ed34ea to 2e5102a Compare December 11, 2024 13:48
@joewiz
Copy link
Member Author

joewiz commented Dec 11, 2024

Thanks, all. I've removed true & false from the schema-allowed options and updated my PR branch.

In the issue I linked to the implementation and its tests, which still respectively support and use true & false. I think those fixes should come in a separate PR. If that PR removes these values, it would constitute a breaking change, but of course the PR could also deprecate them, etc.

(I think this PR still counts as a bugfix, since the old schema complained about the very presence of the @binary attribute.)

@line-o line-o self-requested a review December 11, 2024 15:31
@line-o line-o merged commit bac6441 into eXist-db:develop Dec 11, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Register binary attribute in collection.xconf.xsd
5 participants