Skip to content

Commit 810bc08

Browse files
authored
Merging for v1.7.0 (#197)
1 parent 5a2a594 commit 810bc08

File tree

27 files changed

+45495
-30185
lines changed

27 files changed

+45495
-30185
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.7.0] - 2025-04-09
11+
12+
### Added
13+
14+
- A favicon (#188).
15+
- A cache to remember the entire result table (useful when scrolling through pages of a lengthy result table) (#193).
16+
17+
### Changed
18+
19+
- Using new verification library v0.2.0 (#184).
20+
- Refactoring, avoiding the usage of an internal, undocumented react-admin component (#185).
21+
- Removed the loading indicator / refresh button in the appbar (#195).
22+
23+
### Fixed
24+
25+
- Queries no longer executed twice (#176).
26+
- Templated queries: visiting with variable values in url search parameters now works as expected (#183).
27+
- Solved console warning when hovering over source verification question mark (#128).
28+
- ASK query is working now (#22).
29+
- "Finished in" now shows effective query execution time (#130).
30+
- "Clean query cache" button's functionality works as expected now (also for templated queries with indirect variables) (#190).
31+
- "The page is loading." type of prompt is back (now "The list is loading." and "The options for the variables in this query are loading.") (#194).
32+
1033
## [1.6.0] - 2025-03-17
1134

1235
### Added
@@ -215,4 +238,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
215238
[1.4.1]: https://github.com/SolidLabResearch/generic-data-viewer-react-admin/releases/tag/v1.4.1
216239
[1.5.0]: https://github.com/SolidLabResearch/generic-data-viewer-react-admin/releases/tag/v1.5.0
217240
[1.6.0]: https://github.com/SolidLabResearch/generic-data-viewer-react-admin/releases/tag/v1.6.0
218-
[Unreleased]: https://github.com/SolidLabResearch/generic-data-viewer-react-admin/compare/v1.6.0...HEAD
241+
[1.7.0]: https://github.com/SolidLabResearch/generic-data-viewer-react-admin/releases/tag/v1.7.0

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Table of contents:
2828
* [Additional prerequisites](#additional-prerequisites)
2929
* [Testing the production version](#testing-the-production-version)
3030
* [Testing the development version](#testing-the-development-version)
31-
* [Maintaining the version string](#maintaining-the-version-string)
31+
* [Release activities](#release-activities)
3232

3333
## Preface
3434

@@ -444,6 +444,6 @@ The procedure is the same as for testing the production version, except for step
444444
npm run dev-with-path
445445
```
446446

447-
### Maintaining the version string
447+
### Release activities
448448

449-
Maintain the version string [here](./main/src/version.js) according to the rules in that file.
449+
See [RELEASE.md](./RELEASE.md).

RELEASE.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Release activities
2+
3+
* [Release tag](#release-tag)
4+
* [Finalize work on the development branch](#finalize-work-on-the-development-branch)
5+
* [Merge to the main branch](#merge-to-the-main-branch)
6+
* [Create a new release](#create-a-new-release)
7+
* [Back on the development branch](#back-on-the-development-branch)
8+
9+
## Release tag
10+
11+
Define the release tag. Example: `v1.7.0`.
12+
13+
> Dut do not create the tag in git yet.
14+
15+
## Finalize work on the development branch
16+
17+
All feature branches and fix branches should be merged here
18+
and [CHANGELOG.md](./CHANGELOG.md) should reflect all modifications under the `## [Unreleased]` section.
19+
20+
In [CHANGELOG.md](./CHANGELOG.md):
21+
22+
* Create the new release section by adding a new release title line below the `## [Unreleased]` title line. Example: `## [1.7.0] - 2025-04-09`.
23+
* Add a new release link line near the end of the file. Example: `[1.7.0]: https://github.com/SolidLabResearch/generic-data-viewer-react-admin/releases/tag/v1.7.0`.
24+
* Update the `[Unreleased]` link in the bottom line to use the new release tag. Example: `[Unreleased]: https://github.com/SolidLabResearch/generic-data-viewer-react-admin/compare/v1.7.0...HEAD`
25+
26+
Enter the release tag in the version string in [/main/src/version.js](./main/src/version.js).
27+
28+
## Merge to the main branch
29+
30+
Go to the github web interface.
31+
32+
Create a new pull request (example: `Merging for v1.7.0`) to the main branch, from the development branch.
33+
34+
Squash and merge.
35+
36+
## Create a new release
37+
38+
Still in the github web interface...
39+
40+
Create a new release, with the option to create a new git tag (our release tag, example: `v1.7.0`) on the main branch.
41+
42+
In the release description, copy from [CHANGELOG.md](./CHANGELOG.md):
43+
44+
* the new release section created above
45+
* the new release link created above
46+
47+
Make sure to set the release as the latest release.
48+
49+
## Back on the development branch
50+
51+
Modify the version string in [/main/src/version.js](./main/src/version.js) back to `(unreleased)`.

main/configs/demo/config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959
"icon": "BrushIcon",
6060
"comunicaContext": {
6161
"sources": [
62-
"https://fragments.dbpedia.org/2016-04/en"
62+
"http://localhost:8080/example/artists"
6363
]
6464
},
6565
"askQuery": {
66-
"trueText": "There is an artist who is inspired by Picasso!",
67-
"falseText": "There is no artist who is inspired by Picasso."
66+
"trueText": "Yes, there is at least one artist influenced by Picasso!",
67+
"falseText": "No, there is not a single artist influenced by Picasso."
6868
}
6969
},
7070
{

main/configs/demo/public/favicon.ico

2.48 KB
Binary file not shown.
2.48 KB
Binary file not shown.
2.48 KB
Binary file not shown.

main/configs/test/config.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@
6464
"icon": "BrushIcon",
6565
"comunicaContext": {
6666
"sources": [
67-
"https://fragments.dbpedia.org/2016-04/en"
67+
"http://localhost:8080/example/artists"
6868
]
6969
},
7070
"askQuery": {
71-
"trueText": "There is an artist who is inspired by Picasso!",
72-
"falseText": "There is no artist who is inspired by Picasso."
71+
"trueText": "Yes, there is at least one artist influenced by Picasso!",
72+
"falseText": "No, there is not a single artist influenced by Picasso."
7373
}
7474
},
7575
{
@@ -292,6 +292,23 @@
292292
]
293293
}
294294
},
295+
{
296+
"id": "8900",
297+
"queryGroupId": "gr-test",
298+
"queryLocation": "ask_picasso.rq",
299+
"name": "Is there an artist influenced by Picasso (forced negative answer)?",
300+
"description": "Demonstrates an ASK query, here with negative answer, forced by using an irrelevant data source.",
301+
"icon": "BrushIcon",
302+
"comunicaContext": {
303+
"sources": [
304+
"http://localhost:8080/example/values"
305+
]
306+
},
307+
"askQuery": {
308+
"trueText": "Yes, there is at least one artist influenced by Picasso!",
309+
"falseText": "No, there is not a single artist influenced by Picasso (if you look at the wrong data)."
310+
}
311+
},
295312
{
296313
"id": "9000",
297314
"queryGroupId": "gr-test",

main/configs/test/public/favicon.ico

2.48 KB
Binary file not shown.

main/src/components/ActionBar/ActionBar.jsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,31 @@ import configManager from "../../configManager/configManager.js";
2727
*/
2828
function ActionBar() {
2929
const { total, isLoading, resource } = useListContext();
30-
const [time, setTime] = useState(0);
30+
const now = Date.now();
31+
const [timeStart, setTimeStart] = useState(now);
32+
const [timeNow, setTimeNow] = useState(now);
3133
const [sourceInfoOpen, setSourceInfoOpen] = useState(false);
3234

3335
useEffect(() => {
3436
if (isLoading) {
35-
setTime(0);
37+
const now = Date.now();
38+
setTimeStart(now);
39+
setTimeNow(now);
3640
}
3741
}, [isLoading]);
3842

3943
useEffect(() => {
4044
let intervalId;
4145
if (isLoading) {
42-
intervalId = setInterval(() => setTime(time + 1), 10);
46+
intervalId = setInterval(() => setTimeNow(Date.now()), 100);
4347
}
4448
return () => clearInterval(intervalId);
45-
}, [time, isLoading]);
49+
}, [timeNow, isLoading]);
4650

4751
const config = configManager.getConfig();
4852
const query = configManager.getQueryWorkingCopyById(resource);
4953
const context = query.comunicaContext;
50-
const sources = context.sources;
54+
const sources = context?.sources || []; // in early calls, context might be undefined
5155

5256
return (
5357
<Grid container direction="row" width={"100%"} rowSpacing={1}>
@@ -58,7 +62,7 @@ function ActionBar() {
5862
<div className="information-box">
5963
{isLoading && <strong>Runtime: </strong>}
6064
{!isLoading && <strong>Finished in: </strong>}
61-
<Time time={time} showMilliseconds={config.showMilliseconds} />
65+
<Time elapsedMilliseconds={timeNow - timeStart} showMilliseconds={config.showMilliseconds} />
6266
</div>
6367
<div className="information-box">
6468
<strong>Sources: </strong>
@@ -102,10 +106,10 @@ function ActionBar() {
102106
<SourceAuthenticationIcon source={source} />
103107
</TableCell>
104108
<TableCell>
105-
<SourceFetchStatusIcon proxyUrl={config.httpProxy} context={context} source={source} />
109+
<SourceFetchStatusIcon proxyUrl={config.httpProxy || ""} context={context} source={source} />
106110
</TableCell>
107111
<TableCell>
108-
<SourceVerificationIcon proxyUrl={config.httpProxy} context={context} source={source} />
112+
<SourceVerificationIcon proxyUrl={config.httpProxy || ""} context={context} source={source} />
109113
</TableCell>
110114
</TableRow>
111115
))}

0 commit comments

Comments
 (0)