Giter Club home page Giter Club logo

Comments (20)

ptgolden avatar ptgolden commented on May 24, 2024

Adam:

In both Chrome and Firefox, clicking the "Submit patch" button causes a spinning processing icon to appear at the top of the page, but nothing happens on the user side after that. When one clicks on "Submitted patches", nothing appears. Should there be some event on the user-interface side to show that something has happened?

We tested this by adding a period (Pre-Pottery Neolithic A) to an existing collection (King and Stager) in local idbs entitled "test1" in both cases (in case something shows up on the server side).

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

Adam:

UPDATE: when we added a NEW collection (the British Museum thesaurus) with one new period, the "Submit Patch" produced the image below. The screen now includes the new collection (period itself not specified), the new period we'd previously added to an existing collection, and two periods that are listed as "edited" from the same existing collection that we're quite sure we did not just edit. It would be helpful in this case to see either a timestamp for the edit or some sort of view of the edits that had been made (I think this would be generally helpful, actually, for people to keep track of their own edits before submission, even if the bug is fixed).
4e768bc8-e81d-11e4-9691-f122bd47cf62

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

Adam:

UPDATE: submission of that patch (select all for new period collections and new periods) went through when I was logged in with my ORCID; "Submitted Patches" led to a page with the following message:

https://test.perio.do/patches/1/
Resolved? false

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

Should there be some event on the user-interface side to show that something has happened?

Yes, something should happen if it was submitted. For whatever reason, I think it was hanging. But, in that case, you should probably get some notification about why it's not working! I'll make that happen.

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

We tested this by adding a period (Pre-Pottery Neolithic A) to an existing collection (King and Stager) in local idbs entitled "test1" in both cases (in case something shows up on the server side).

I think part of the issue is that the data model changed from the last time you synced locally to this time. This explains the "phantom edits" you see when submitting a patch.

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

It would be helpful in this case to see either a timestamp for the edit or some sort of view of the edits that had been made (I think this would be generally helpful, actually, for people to keep track of their own edits before submission, even if the bug is fixed).

That page is the list of edits that you have made. Or, at least, it should be. Things you seen in green are information you have added, and things in red are things that you have deleted. In the case of the period you didn't edit that turned up as edited- what I'm guessing is that it's detecting a change from the old data model to the new one, which is semantically, but not visually different. This shouldn't be the case if you start from scratch with a new "backend".

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

UPDATE: submission of that patch (select all for new period collections and new periods) went through when I was logged in with my ORCID; "Submitted Patches" led to a page with the following message:

https://test.perio.do/patches/1/
Resolved? false

That means the patch submission went through. As I indicated in #35, that's about as far as I've gotten.

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

From the patch on the server, it looks like you:

  • Added a period collection for the british museum thesaurus, with one period definition (Abbasid Dynasty)
  • Added a period definition to the period collection based on "Life in Biblical Israel" (also Abbasid Dynasty)

Is that correct? Sorry that it's not (yet) clear what happens after submission. This was a really tricky collection of things to implement, and if that's what you meant to do then we have gotten pretty far along.

from periodo-client.

atomrab avatar atomrab commented on May 24, 2024

Partially correct: we added a period collection for the British Museum, with a single period definition (Abbasid Dynasty); and we added a period definition to the period collection for King and Stager/Life in Biblical Israel, but that period was supposed to be Pre-Pottery Neolithic A (see the screen grab above). So it looks like the period added to the existing collection was somehow overwritten by the period added to the new collection?

Still, I think we have come a long way! Nice work here!

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

Huh, strange. Yes, looks like they got jumbled:

         "originalLabel" : {
            "eng-latn" : "Abbasid Dynasty"
         },
         "label" : "Pre-Pottery Neolithic A",

I'll try to see what's going on there

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

I'm going to write some automated tests before I try to diagnose anymore- thank your for pointing out some of the rough edges.

from periodo-client.

sarahab avatar sarahab commented on May 24, 2024

Signed in to ORCID, the "Submit patch" screen showed an overview of my patch, "continue," then on the "Confirm" page I click "submit" ... then instead of a confirmation message it returns me to the "Submit patch" page. I think that's a bug, because when I get out of that page by "switching" (to the same thing) I see I've submitted two patches of the same thing. 3 Screenshots below:
20150422_submit_patch
20150422_submit_patch2
20150422_submit_patch3

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

This is most likely a confluence of the issues that you and Adam pointed out after testing out my initial implementation. I'd recommend not submitting anymore patches until I'm able to diagnose the problem.

from periodo-client.

atomrab avatar atomrab commented on May 24, 2024

The patch submission for the test1 IDB now shows that the Pre-Pottery Neolithic A period from King and Stager has been partially overwritten by the Abbasid period that was supposed to be part of the new BM collection (which doesn't seem to have any new period attached to it):

image

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

can you start from scratch and see if the same thing happens. if this was created on an old version of the client, it's perfectly possible that it just produced ill-formed data.

from periodo-client.

atomrab avatar atomrab commented on May 24, 2024

So I started again from scratch and did the following, using version 1.0.13 on Chrome:

  1. Created new IDB (“test3”)
  2. Menu>Get data from server
  3. Sync with test.perio.do
  4. When given choice of items to select, selected existing collections for Twist and King/Stager
  5. Continue
  6. Yes
  7. Clicked on PeriodO to return to test3 idb (probably need a smoother way back to the dataset from the sync page – unless back button is suggested; same is true about backing out of collections to faceted browse page – back button or PeriodO is only option)
  8. Added period to King and Stage – PPNA
  9. Added collection Library of Congress Subject Headings
  10. Added period to that collection – Dorian Invasions
  11. Menu>submit patch
    a. Selected all
    b. Submit changes>Yes – then nothing happens
    c. No patch submission appears in the submitted patches area or the review patches area

I then tried to edit an existing period in an existing collection in a separate local idb (test2), with the following results:

  1. Selected Yon 2006 collection
  2. Clicked on period "Late Bronze Age", for which there was a bad end date (see #61).
  3. Clicked on Edit.
  4. Unchecked the automatic date parsing box.
  5. Changed the latest end date from "-0084" to "-1184".
  6. Saved.
  7. Selected "Submit patch to server" from the menu.
    The resulting view was the following:
    submit_patch_yon_edit
    Nothing was marked in green or red to indicate changes, and the dates didn't show up at all. Only the spatial coverage and label were visible.
  8. Checked all and clicked "Continue".
  9. Clicked "Yes" to Submit changes.
    This produced the same result as the previous -- nothing visible happened when I hit "yes", and no patches appeared as submitted or available for review.

I downloaded the JSON-LD files for both test2 and test3, if that will help.

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

you don't have permission to submit patches on the server. I'll tick that box, and also make a useful error if permissions are an issue.

from periodo-client.

atomrab avatar atomrab commented on May 24, 2024

Gotcha. Let me know when I should try to resubmit, and whether you want the JSON files.

from periodo-client.

ptgolden avatar ptgolden commented on May 24, 2024

actually, that wasn't the problem. if you sign out and sign back in, you will be able to submit patches. this will not be a normal thing that will be required in the future.

you still won't be able to accept patches from the "review patches" section, because that is a permission issue. I'm going home so I won't get to it until tomorrow or Friday.

from periodo-client.

atomrab avatar atomrab commented on May 24, 2024

Got it! I signed out and in, and this time the submission worked just fine, including the formatting for the changes and the message that the patch had been saved. I can't view the details of the submission, but this may also be a permissions issue. I submitted patches from both idbs. Thanks!

from periodo-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.