VTUL / vtechworks

DSpace at Virginia Tech
http://vtechworks.lib.vt.edu
Other
6 stars 8 forks source link

Install DS-3914: Fix community defiliation #2178 #702

Closed alawvt closed 3 years ago

alawvt commented 4 years ago

DS-3914: Fix community defiliation #2178

This is also scheduled to be released in DSpace 6.4.

root@vtechworksvm:/dspace/bin# sudo -u vtechworks /dspace/bin/dspace community-filiator -h
usage: CommunityFiliator
 -c,--child <arg>    child community (handle or databaseID)
 -h,--help           help
 -p,--parent <arg>   parent community (handle or database ID)
 -r,--remove         remove a parent/child relationship
 -s,--set            set a parent/child relationship

establish a relationship: CommunityFiliator -s -p parentID -c childID
remove a relationship: CommunityFiliator -r -p parentID -c childID
alawvt commented 3 years ago

Installed patch. Test:

sudo -u vtechworks /dspace/bin/dspace community-filiator -r -p 10919/5478 -c 10919/5525

Defiliation complete. Community: '8419cc8e-1e8b-4e6b-a391-68559a96e81d' is no longer a child of community: '8e42f588-ff3e-4eb6-b440-0c0ec6a1c5e3'

Result: Subcommunity 10919/55251 appears on the home page, as expected.

sudo -u vtechworks /dspace/bin/dspace community-filiator -s -p 10919/5555 -c 10919/5525

Filiation complete. Community: '053fc69f-7bfd-4e92-bb61-d6232908b59e' is parent of community: '8419cc8e-1e8b-4e6b-a391-68559a96e81d'

Result: Subcommunity 10919/5525 appears in Community 10919/5555, as expected. However Subcommunity 10919/5525 also appears on the home page.

After < 10 minutes, that subcommunity no longer appears on the home page. There also seems to be a delay in updating the breadcrumb. It might be a caching issues.

alawvt commented 3 years ago

Resolved by #756