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

Group skeleton updateActions for proper versions #1900

Closed
jfrohnhofen opened this issue Jul 10, 2017 · 9 comments · Fixed by #1957
Closed

Group skeleton updateActions for proper versions #1900

jfrohnhofen opened this issue Jul 10, 2017 · 9 comments · Fixed by #1957

Comments

@jfrohnhofen
Copy link
Contributor

jfrohnhofen commented Jul 10, 2017

I discussed the semantics of versions in skeleton updateActions with Norman and Daniel and we agreed on the following format. Versions must be increasing and unique and all actions belonging to one version MUST be in the same array in the same request.

[
  {
    version: 123,
    timestamp: 123456789,
    actions: [
      {
        name: "updateTracing",
        value: { ... }
      }, ...
    ]
  }, ...
]

Log Time

@fm3
Copy link
Member

fm3 commented Jul 10, 2017

I like that.
This is now the expected format as of this commit

@daniel-wer
Copy link
Member

@jfrohnhofen I'm not sure how to proceed with this. Is there already a release containing the commit that @fm3 mentioned that I could use for development or should I implement the frontend changes without the new backend and we'll merge later?

@jfrohnhofen
Copy link
Contributor Author

@daniel-wer The only branch I could offer you right now barely compiles and you will most certainly not be able to start a skeleton tracing there. So if you don't mind, implement this on a separate branch from master and we will merge later. Otherwise you can wait until we have the backend somewhat ready and just implement it on our branch then.

@daniel-wer
Copy link
Member

No problem, the frontend changes are pretty clear, I'll develop on a separate branch, which you can then use to test :)

@daniel-wer
Copy link
Member

Currently we're sending a request to /annotations/${tracingType}/${tracingId}?version=${version + 1}. I'm assuming the version as a get parameter is then no longer needed as the version numbers are contained in the data payload, correct?

@fm3
Copy link
Member

fm3 commented Jul 12, 2017

that’s right, it’s now read only from the json body. (the exact route will change again at some point though)

daniel-wer added a commit that referenced this issue Jul 12, 2017
@daniel-wer
Copy link
Member

I just pushed the frontend changes on the group-update-actions branch. I repaired the tests and added a couple of new ones specifically for this change, but as I couldn't end-to-end test this, I'm not perfectly sure whether everything really works ^^ Please report back once you were able to test :)

@daniel-wer
Copy link
Member

I would opt to leave this open as it is not merged yet, right?

@jfrohnhofen
Copy link
Contributor Author

Sure. But is this issue referenced from some commit / PR so it can be auto closed?

daniel-wer added a commit that referenced this issue Aug 30, 2017
… and a tracing always exist - fix tests, linter, flow (#1900)
jfrohnhofen added a commit that referenced this issue Sep 1, 2017
…knossos into bravenewworldSkeletons

* 'bravenewworldSkeletons' of github.com:scalableminds/webknossos:
  re-implement task creation from file
  minor fixes for view mode refactoring (#1900)
  refactor view mode, the frontend no longer assumes that an annotation and a tracing always exist - fix tests, linter, flow (#1900)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants