Skip to content

Conversation

@Qup42
Copy link
Collaborator

@Qup42 Qup42 commented Jan 19, 2025

With this change, the QLever UI supports updates. Under "Backend Information", an access token can be entered, in which case, two new buttons "Clear Delta Triples" and "Clear Cache (Complete)" appear. When an update has been entered and executed and the access token is correct and the update worked, a message "Update successful (insert triples: ..., delete triples: ...)" is displayed. Fixes #122

Copy link
Contributor

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

1-1 with Julian, looks great and works, thanks a lot!

It would be great to show a meaningful message (like: "Update successful") when the update was successful (no need to display the JSON for this PR).

Copy link
Contributor

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

1-1 with Julian, this looks great and works. A few suggestions for improvement:

  1. Remove the extra space before the "Automatically add names ..."
  2. Add button for "Clear delta triples" and "Clear cache complete"
  3. Add some more information to the "Update successful" message

NOTE: There already is a field for the access token (called API token) in the backend config as well as buttons for clear cache etc.

@Qup42
Copy link
Collaborator Author

Qup42 commented Feb 8, 2025

  1. The Clear delta triples button currently is reported as having had an error, because the response is not JSON but plain text. I'll change the response the response to JSON in QLever.

The whole warmup functionality is broken quite much (see #130). Fixing that that is out of scope, so I won't add a corresponding Clear delta triples button in the Django Admin in this PR:

Copy link
Contributor

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

Thorough 1-1 with Julian, this is great and works fine now. A few more glitches:

  1. Functionality of the new buttons: when successful after the red x, the spinning wheel icon disappears completely
  2. When buttons are displayed the whole column moves to the left; more padding
  3. Number of inserted triples is 0 although it isn't (maybe same for delete triples)

- Show backend command buttons (Clear Delta Triples, Clear Cache (Complete) iff Access Token is not empty. Fixed that the buttons would not be shown if the field was not empty on load.
- Backend command button icons are set correctly when transitioning between states (running, failed, succeeded). The buttons now also return to the green color after a successful execution.
- Columns of Basic settings table in Backend Information changed widths when the backend command buttons where shown/hidden. Fixed by having them beneath each other.
- Backend command buttons have some padding.
- If the operation type was not detected this could also cause indefinite operation execution (although this seems to not be the only cause). Display an error in this case and prompt to report it.
@Qup42
Copy link
Collaborator Author

Qup42 commented Feb 14, 2025

6b0b2e3 contains an extensive description of the changes and fixes.

Copy link
Contributor

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

1-1 with Julian, last round, this looks great now and works, thanks a lot!

@hannahbast hannahbast changed the title Support update Support updates in UI Feb 21, 2025
@hannahbast hannahbast changed the title Support updates in UI Support updates in the QLever UI Feb 21, 2025
@hannahbast hannahbast merged commit cd23084 into qlever-dev:master Feb 21, 2025
hannahbast pushed a commit that referenced this pull request Mar 10, 2025
PR #126 introduced an automatic detection whether the operation is `query` or `update`. This was done via regexes and not correct in all cases. This is now fixed by using `qlue-ls` for parsing (and defaulting to type `query` when the parser could not determine the type).

Resolves #137. Resolves #138. Resolves ad-freiburg/qlever#1838. Resolves #140.
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.

Sparql update - Provide token

2 participants