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

ensure to return a string #523

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Conversation

peterstadler
Copy link
Member

ensure to return a string when $eventualTitles is the empty sequence.
The error surfaced in the current Open-Faust data where there is a link from the navigator to a non-existent file.

How Has This Been Tested?

Open-Faust data

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Improvement

Overview

  • I have updated the inline documentation accordingly.
  • I have performed a self-review of my code, according to the style guide
  • I have read the CONTRIBUTING document.
  • All new and existing tests passed.

when $eventualTitles is the empty sequence.
@peterstadler peterstadler added Type: bugfix A pull request providing a bugfix Area: XQuery labels Jan 10, 2025
@peterstadler peterstadler added this to the 1.0.0 milestone Jan 10, 2025
@krHERO krHERO mentioned this pull request Jan 10, 2025
10 tasks
@daniel-jettka
Copy link
Contributor

Thanks @peterstadler Is this what it should look like? Then I can approve.

Before the fix:

image

After the fix:

image

@peterstadler
Copy link
Member Author

@daniel-jettka yes, that is the "expected" behavior: getLinkTarget.xql does not fail and returns a valid response. The error in the data (the missing file) gets obvious.

Copy link
Contributor

@daniel-jettka daniel-jettka left a comment

Choose a reason for hiding this comment

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

Works like expected. Thanks @peterstadler

@daniel-jettka daniel-jettka merged commit ce4c0d4 into develop Jan 14, 2025
5 checks passed
@daniel-jettka daniel-jettka deleted the fix-getlinktarget-once-more branch January 14, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: XQuery Type: bugfix A pull request providing a bugfix
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants