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

Enhancement tools #312

Closed
Closed
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0615e64
name enhancer for person entity
floriangantner Feb 3, 2023
4b8e3e3
item enhancer for collections and entity type
floriangantner Feb 3, 2023
13677d8
item enhancer for collections and entity type and modifiedDate using …
floriangantner Feb 3, 2023
05cd10f
enhancer using mapconverter result
floriangantner Feb 3, 2023
c42703b
clean up code and some fixes
floriangantner Jul 3, 2023
b2912ca
Merge branch 'dspace-cris-7' into dspace-cris-7-enhancement
floriangantner Jul 3, 2023
4b51093
fix missing license header
floriangantner Jul 11, 2023
ee91399
fix a bunch of dspace checkstyle issues
floriangantner Aug 8, 2023
a4e7728
fix another dspace checkstyle issues
floriangantner Aug 8, 2023
fd79222
common itemenhancer integration tests
floriangantner Aug 22, 2023
7b10626
Merge branch 'dspace-cris-7' into dspace-cris-7-enhancement
floriangantner Aug 28, 2023
fa1c3f0
fix wrong config property breaking tests
floriangantner Aug 28, 2023
742ab6a
refactor item enhancement entity type script
floriangantner Aug 30, 2023
cad9330
refactor item enhancement by date script
floriangantner Aug 30, 2023
7c045ef
Merge branch 'dspace-cris-7' into dspace-cris-7-enhancement
floriangantner Oct 13, 2023
8103547
[maven-release-plugin] prepare release dspace-cris-2023.02.02
atarix83 Feb 9, 2024
d46630f
Merge tag 'dspace-cris-2023.02.02' into dspace-cris-7-enhancement
floriangantner Feb 20, 2024
2c10042
align enhancer scripts to new deepMode force enhancement
floriangantner Feb 20, 2024
9c46991
implement deepMode in NameEnhancer
floriangantner Feb 20, 2024
5ab97e4
implement deepMode in MapConverterValueEnhancer
floriangantner Feb 20, 2024
81aa4a4
align enhancer integration tests
floriangantner Feb 22, 2024
dfa2a91
integration tests for enhancer
floriangantner Feb 23, 2024
8600d1b
integration test for nameenhancer
floriangantner Feb 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
align enhancer scripts to new deepMode force enhancement
floriangantner committed Feb 20, 2024
commit 2c100420a8c1c50e913ccb45880f311f977a9555
Original file line number Diff line number Diff line change
@@ -253,12 +253,7 @@ private SolrDocumentList searchItemsInSolr(String query, String datequeryupper,
}

private void enhanceItem(Item item) {
if (force) {
itemEnhancerService.forceEnhancement(context, item);
} else {
itemEnhancerService.enhance(context, item);
}

itemEnhancerService.enhance(context, item, force);
uncacheItem(item);
}

Original file line number Diff line number Diff line change
@@ -42,7 +42,8 @@ public Options getOptions() {
if (options == null) {
Options options = new Options();

options.addOption("f", "force", false, "force the recalculation of all the virtual fields");
options.addOption("f", "force", false, "force the usage of the deep mode"
+ " (always compute the enhanced metadata to verify if the item need an update)");
options.addOption("c", "collection", true,
"uuid of the collection. If the collection does not exist the script aborts.");
options.addOption("e", "entity", true, "Entity type of the items");
Original file line number Diff line number Diff line change
@@ -312,11 +312,7 @@ private void findItemsToEnhance(Collection coll) {
}

private void enhanceItem(Item item) {
if (force) {
itemEnhancerService.forceEnhancement(context, item);
} else {
itemEnhancerService.enhance(context, item);
}
itemEnhancerService.enhance(context, item, force);
uncacheItem(item);
}

@@ -329,11 +325,7 @@ private void enhanceItemEntityCheck(Item item) {
uncacheItem(item);
}
} else {
if (force) {
itemEnhancerService.forceEnhancement(context, item);
} else {
itemEnhancerService.enhance(context, item);
}
itemEnhancerService.enhance(context, item, force);
uncacheItem(item);
}
}
Original file line number Diff line number Diff line change
@@ -43,7 +43,8 @@ public Options getOptions() {
if (options == null) {
Options options = new Options();

options.addOption("f", "force", false, "force the recalculation of all the virtual fields");
options.addOption("f", "force", false, "force the usage of the deep mode"
+ " (always compute the enhanced metadata to verify if the item need an update)");
options.addOption("c", "collection", true,
"uuid of the collection. If the collection does not exist the script aborts.");
options.addOption("e", "entity", true,