-
Notifications
You must be signed in to change notification settings - Fork 501
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
Regression in UsersIT.testMergeAccounts (merging accounts no longer works in develop branch after pull request #5863 was merged) #5978
Comments
I'm seeing the same error on a later run: https://build.hmdc.harvard.edu:8443/job/phoenix.dataverse.org-apitest-develop/407/testReport/ |
I just installed Dataverse 4.15 on my laptop and ran UsersIT.testMergeAccounts a couple time. No failures. Not many pull requests have been merged into "develop" since 4.15 was released: The only ones that I can imagine making a difference are these:
|
I just switched to 2f477c9 which is the latest in the develop branch and I can reproduce the UsersIT.testMergeAccounts failure. The same line fails. Here's what the code is doing:
I believe this means that if we ship the code in develop right now that merging accounts will no longer work. I'm hoping the fix wll be easy. It looks like a NamedQuery called Here's the stack trace:
|
On the phoenix server running 2f477c9 , the latest in develop, I just tried merging the user "chestnut" into user "sparrow" and it failed a CommandException.
It's the same error as above:
So I hope that pull request #5980 is a good fix. I added that NamedQuery back in. I don't know why it was removed. |
Hi @pdurbin - Looking at the 'Blame' history of my code, I am definitely to Blame! Sorry, I was deleting the various things in GuestbookResponse that needed to be moved to FileDownload and I guess I deleted the NamedQuery accidentally - there was no reason to remove it. My apologies for the issue and the extra work! |
@mdmADA no harm done. This is why we have automated testing in place. The whole point is to catch regressions before a release. 😄 |
Yes that's good with the automated testing and doing what it's meant to do! I am also probably just fulfilling the awful, and I guess true, stereotype about Canadians having to say 'sorry' a lot! |
Tested, works. |
get "merge accounts" working again #5978
According to https://build.hmdc.harvard.edu:8443/job/phoenix.dataverse.org-apitest-develop/405/edu.harvard.iq$dataverse/testReport/edu.harvard.iq.dataverse.api/UsersIT/testMergeAccounts/ as of 2f477c9 there's a regression on the line 228:
dataverse/src/test/java/edu/harvard/iq/dataverse/api/UsersIT.java
Lines 227 to 229 in 2f477c9
The text was updated successfully, but these errors were encountered: