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

Manage Harvesting Client page keeps refreshing. Unable to add or edit clients #5735

Closed
jggautier opened this issue Apr 9, 2019 · 4 comments
Assignees
Milestone

Comments

@jggautier
Copy link
Contributor

jggautier commented Apr 9, 2019

On Harvard Dataverse, v4.12, the Manage Harvesting Client page keeps refreshing. So I'm not able to add clients or edit existing clients because the modal windows close seconds after opening.

This wasn't happening on Demo Dataverse, v4.12, until I added a client and tried harvesting. Looks like the harvesting job is stuck INPROGRESS, and now the modal windows on Demo also closes seconds after opening.

@jggautier jggautier changed the title Manage Harvesting Client page keeps refreshing. Unable to add new clients Manage Harvesting Client page keeps refreshing. Unable to add or edit clients Apr 9, 2019
@djbrooke
Copy link
Contributor

djbrooke commented Apr 9, 2019

@jggautier - can you check in with @landreev about how this relates to his comments in IQSS/dataverse.harvard.edu#8 ? I'm happy to get some items estimated and it would be helpful if you two can discuss briefly and bring an item or two to sprint planning this week. Thanks!

@landreev
Copy link
Contributor

landreev commented May 2, 2019

This is not related to the harvesting sets issues we were having. It looks like autorefresh was added to the page by an external contributor last fall. These lines in harvestclients.xhtml:

<script type="text/javascript" jsf:rendered="#{harvestClient.harvestingNow or harvestClient.deleteInProgress}">
                                if (window.refreshTimer === undefined){
                                    window.refreshTimer = setTimeout(function(){window.location.reload();},5000);
                                }
                            </script>

The intention must have been to have the page refresh automatically if there are harvests in progress... similarly to what we do with the dataset page when the dataset is locked. Unfortunately, unlike with the dataset page, we still want people to be able to do things with other harvesting clients, even if some are running already. In reality, as @jggautier pointed out, a long-running harvest, or a stuck harvest, is now rendering the page unusable.
So these lines above should be removed.
(so yeah, I would estimate it as 1 and add it to the next spring)

@jggautier
Copy link
Contributor Author

jggautier commented Jun 3, 2019

@landreev did something to stop the page from auto refreshing in Harvard Dataverse's Dataverse instance. (Thanks!)

@sekmiller sekmiller self-assigned this Jun 7, 2019
sekmiller added a commit that referenced this issue Jun 7, 2019
@sekmiller sekmiller removed their assignment Jun 7, 2019
@pdurbin pdurbin self-assigned this Jun 7, 2019
@pdurbin
Copy link
Member

pdurbin commented Jun 7, 2019

I just approved pull request #5926 but but head up to @tcoupin (and everybody) that this reverts your commit at 7240e7a in pull request #5248 for the following issue (which was opened by @kcondon ):

Harvest: Automatically update manage client page as harvesting completes. #3260

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants