Skip to content

Conversation

@line-o
Copy link
Member

@line-o line-o commented Apr 14, 2025

Screenshot 2025-04-15 at 15 37 59

closes #71

@line-o line-o requested a review from duncdrum April 14, 2025 12:32
@duncdrum
Copy link
Contributor

@line-o I think we need some tests in the templating repo that capture the different behavior we see between 6 and 7 here, especially regarding checks and forms.

The markdown element being swallowed on 7 is a head scratcher.

Copy link
Contributor

@duncdrum duncdrum left a comment

Choose a reason for hiding this comment

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

@line-o this is more then just refactoring and changes the apps behavior leading to failing tests. Can we mark this as draft until it passes CI again?

@line-o
Copy link
Member Author

line-o commented Apr 15, 2025

As we saw yesterday the changes while working fine in exist v6 leads to a NPE in exist v7
Fixing this is out of scope for this PR. I will keep this open until it is merged either because the issue in exist is fixed or because we allow function-documentation to fail in the unreleased version of exist.

@line-o
Copy link
Member Author

line-o commented Apr 15, 2025

Caused by: java.lang.NullPointerException: Cannot invoke "org.exist.xquery.value.Sequence.getItemCount()" because "contextSequence" is null
	at org.exist.xquery.pragmas.Optimize.eval(Optimize.java:114)
	at org.exist.xquery.ExtensionExpression.eval(ExtensionExpression.java:75)
	at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:98)
	at org.exist.xquery.LetExpr.eval(LetExpr.java:99)
	at org.exist.xquery.UserDefinedFunction.eval(UserDefinedFunction.java:161)

@line-o
Copy link
Member Author

line-o commented Apr 15, 2025

see eXist-db/exist#5707

@line-o
Copy link
Member Author

line-o commented Apr 15, 2025

@duncdrum I found a workaround

@line-o line-o requested a review from duncdrum April 15, 2025 15:40
line-o added 2 commits April 16, 2025 15:29
- restructure library imports: external then internal
- standards compliant output declaration
- lookup without try-catch
- disallow legacy class-syntax
- filter data-template attributes
@line-o line-o requested review from a team and duncdrum April 16, 2025 14:39
@line-o line-o changed the title Refactor app module Improve application layout and rendering Apr 16, 2025
Copy link
Member

@joewiz joewiz left a comment

Choose a reason for hiding this comment

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

LGTM

line-o and others added 6 commits April 16, 2025 23:39
By switching the form method to get the url will now have all paramters necessary in order to share the search results.
The search works as before including the

Example:
Entering "file:" in the search box and hitting the "Search" button
- URL Before
   http://localhost:8080/exist/apps/fundocs/index.html?
- URL After
   http://localhost:8080/exist/apps/fundocs/index.html?q=file%3A&action=search&type=name
Setting ouput:indent to "no" only works for constructed nodes at the moment.
This still lowers the gzipped load by around 10% on results pages.
@duncdrum duncdrum moved this to In review in v6.4.1 release Apr 22, 2025
Copy link
Contributor

@duncdrum duncdrum left a comment

Choose a reason for hiding this comment

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

looking good I added a test assertion for the new URLs

@duncdrum duncdrum merged commit 6cfa8e5 into eXist-db:master Apr 22, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in v6.4.1 release Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

improve app layout

3 participants