Ticket #610 (closed task: duplicate)

Opened 1 year ago

Last modified 5 months ago

on article delete, remove relevant cache keys and and remove article from any collections (journal or issue) it belongs to

Reported by: russ Assigned to: alex
Priority: medium Milestone:
Component: ambra Version: 0.8.2-SNAPSHOT
Keywords: Cc:
Blocking: Blocked By:

Description

i deleted an article on 0.8.

it was a pone article that had been published to pctr as well.

it still shows up on the manageVirtualJournals page under clinical trials.

i doubt this is causing any trouble.

Dependency Graph

Change History

(follow-up: ↓ 2 ) 08/24/07 16:26:05 changed by ebrown

Hm. I'm surprised. Anyway, I know I've missed a few things on virtual journals.

The article delete code (source:head/plosone/libs/article-util/src/main/java/org/plos/article/util/ArticleUtil.java) uses otm, fedora and fedoragsearch (lucene) to delete the article. I'm not sure what else is necessary for virtual journals.

(in reply to: ↑ 1 ) 08/24/07 16:44:50 changed by pradeep

Replying to ebrown:

Hm. I'm surprised. Anyway, I know I've missed a few things on virtual journals. The article delete code (source:head/plosone/libs/article-util/src/main/java/org/plos/article/util/ArticleUtil.java) uses otm, fedora and fedoragsearch (lucene) to delete the article. I'm not sure what else is necessary for virtual journals.

The article-uri is sitting in the simpleCollection for the CT journal. So a simple criteria or OQL on Aggregation with simpleCollection = <aritcle-doi> and then delete the article-doi from the list and save the Aggregation back.

(follow-up: ↓ 4 ) 08/24/07 22:05:06 changed by ronald

These sort of things is why I'm more and more convinced we should not be attempting to have scripts go muck with things, but instead should be providing url's (REST) for the operations (you can still write a script, but it should just be sending a request to the url). That also ensures that the running system gets updated and doesn't need to be restarted after every such operation.

(in reply to: ↑ 3 ) 08/25/07 18:20:54 changed by amit

  • milestone set to 0.9.

Replying to ronald:

These sort of things is why I'm more and more convinced we should not be attempting to have scripts go muck with things, but instead should be providing url's (REST) for the operations (you can still write a script, but it should just be sending a request to the url). That also ensures that the running system gets updated and doesn't need to be restarted after every such operation.

I agree. Problem has been getting the time to do the REST interface. This will have to be fixed for short term.

09/02/07 22:41:40 changed by

  • milestone deleted.

Milestone 0.9 deleted

(follow-up: ↓ 7 ) 09/18/07 14:34:07 changed by russ

while you're at it (should this ever happen :) the script should also invalidate the article cache and browse caches for relevant journals so that delete doesn't require a restart...

(in reply to: ↑ 6 ) 09/18/07 14:51:03 changed by ronald

Replying to russ:

while you're at it (should this ever happen :) the script should also invalidate the article cache and browse caches for relevant journals so that delete doesn't require a restart...

This already happens on internal deletes. I.e. as soon as the script gets removed or reduced to a 5-line shell that talks to plosone this will work as expected.

12/27/07 16:48:52 changed by russ

  • summary changed from article_delete script should remove articles from virtual journals to article delete should clear browse cache, and remove article from any collections (journal or issue) it belongs to.
  • priority changed from low to medium.
  • version changed from 0.8 to 0.8.2-SNAPSHOT.
  • milestone set to pubApp_0.9.0.
  • owner changed from jsuttor to alex.
  • type changed from defect to task.

reassigning to alex since he's added an article delete action to the admin interface which should clear browse cache and remove from collections as well.

i'm not sure what the prognosis is for this with the article_delete script. it's nice to have the ability to delete multiple articles at once, which the script provides and the admin interface action does not. but if it's going to be hard to get the script to play nice, then we can probably decide not to improve it.

01/07/08 17:34:38 changed by rich

  • milestone deleted.

02/29/08 09:49:41 changed by russ

  • milestone set to pubApp_0.8.2.2.

03/19/08 10:44:16 changed by rich

  • milestone deleted.

04/07/08 16:47:33 changed by russ

  • blocking changed.
  • blockedby changed.
  • summary changed from article delete should clear browse cache, and remove article from any collections (journal or issue) it belongs to to on article delete, remove relevant cache keys and and remove article from any collections (journal or issue) it belongs to.

caches/keys that need clearing on article delete:

* ArticleAnnotationCache?

  • 3 keys

* BrowseCache?

  • Article-info key
  • DateList? for the relevant journal
  • ArtByCat? for the relevant journal
  • ArtByDate? for the relevant journals and date ranges (or just clear all ArtByDate? for the relevant journal)

* SimplePageCachingFilter?

  • Currently impossible to delete a single key, and not worth the pain of clearing the whole cache. See #278.

* article-state

  • Perhaps the other XACML caches too?

05/07/08 10:19:09 changed by pradeep

(In [5657]) Remove SimplePageCachingFilter? and its associated cache.

The object-cache now holds the blobs that this filter was caching. Moreover the object-cache is journal context aware and will be invalidated when article is deleted/re-ingested as well as when the journal membership changes.

This closes #740,#278 and addresses #610,#901.

06/09/08 17:15:18 changed by pradeep

  • status changed from new to closed.
  • resolution set to duplicate.

Duplicate of #901. This should be fixed now.