ModellingWebLab / WebLab

Django-based front-end for the modelling Web Lab v2
Other
3 stars 2 forks source link

User stories #362

Closed MauriceHendrix closed 2 years ago

MauriceHendrix commented 3 years ago

Right so I think Model Groups are mostly done (though needs better tests still). Attached you see:

  1. overview of model groups
  2. creation form (get there by clicking create in overview)
  3. edit form (get there by clicking on model in overview)
  4. overview for a different author without create privileges but with some shared model groups
  5. edit for for a shamed model for this author: visibility is disabled and models they don't have viewing rights for are disabled. The reason I decided to include model groups that you collaborate on on the overview is that I wanted a way for collaborators to edit them. Let me know your thoughts,

1 2 3 4 5

codecov[bot] commented 3 years ago

Codecov Report

Merging #362 (4215be6) into master (04ece2b) will increase coverage by 0.38%. The diff coverage is 98.36%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #362      +/-   ##
==========================================
+ Coverage   95.25%   95.64%   +0.38%     
==========================================
  Files          68       75       +7     
  Lines        3902     4388     +486     
  Branches      398      471      +73     
==========================================
+ Hits         3717     4197     +480     
- Misses        134      141       +7     
+ Partials       51       50       -1     
Impacted Files Coverage Δ
weblab/config/urls.py 100.00% <ø> (ø)
weblab/stories/apps.py 45.45% <45.45%> (ø)
weblab/entities/views.py 92.61% <86.66%> (-0.14%) :arrow_down:
weblab/conftest.py 97.81% <100.00%> (+0.05%) :arrow_up:
weblab/core/recipes.py 100.00% <100.00%> (ø)
weblab/entities/apps.py 100.00% <100.00%> (ø)
weblab/entities/signals.py 100.00% <100.00%> (ø)
weblab/experiments/views.py 99.22% <100.00%> (+0.06%) :arrow_up:
weblab/stories/admin.py 100.00% <100.00%> (ø)
weblab/stories/forms.py 100.00% <100.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3f817e3...4215be6. Read the comment docs.

MichaelClerx commented 3 years ago

How did this PR get to 1655 commits?

MichaelClerx commented 3 years ago

Screenshots look good to me except for the checkboxes: I'd expect us to have lots and lots of models, so that you'd want one of those drop-down boxes that you can type in instead?

MauriceHendrix commented 3 years ago

How did this PR get to 1655 commits? I was committing as root, when I updated the username on that it seemed to think existing commits wer new ones for some reason.

Screenshots look good to me except for the checkboxes: I'd expect us to have lots and lots of models, so that you'd want one of those drop-down boxes that you can type in instead?

arggh that would be much easier and is the default but @mirams didn't like it and wanted checkboxes

mirams commented 3 years ago

dropdown you can type in to search is fine (as well as checkboxes, it could auto-select the checkboxes?). I just don't like the django-style list of all of them in a scroll window thing that you have to ctrl-click and look down

MauriceHendrix commented 3 years ago

dropdown you can type in to search is fine (as well as checkboxes, it could auto-select the checkboxes?). I just don't like the django-style list of all of them in a scroll window thing that you have to ctrl-click and look down

not quite sure what you mean with auto-select the checkboxes? When editig it obviously pre-selects the ones that are included with the modelgroup if that's what you mean

mirams commented 3 years ago

Maurice and I had a chat and decided something like this might be optimal:

image
mirams commented 3 years ago

(The above can be a new ticket for improvements later on, doesn't need to slow down merging in if we want to do more user testing)

MauriceHendrix commented 2 years ago

see https://cardiac.nottingham.ac.uk/weblab to see it in action

MichaelClerx commented 2 years ago

In the first form when you create a story: Graphvisualizer --> Graph visualizer

MichaelClerx commented 2 years ago

Select model (group) --> Select model or model group

MichaelClerx commented 2 years ago

To render the story, I'm having to save, then use the back button to see the results again.

Can we change the "Save" button to "Save and re-run" + "Save and exit" ?

MauriceHendrix commented 2 years ago

To render the story, I'm having to save, then use the back button to see the results again.

Can we change the "Save" button to "Save and re-run" + "Save and exit" ?

What do you mean re-run? Do you mean save & go to the render? Would you prefer to always do that also when you first create the story (which would be a super easy fix) or only in sime circomstances or...? Of course we can have save & view as well as save & exit if you want.

MichaelClerx commented 2 years ago

I just want to see what I made! So some button that makes the graphs show up, without sending me to a different page

MichaelClerx commented 2 years ago

Can we select the "default graph" by default? Or indicate it somehow in the list? Quite hard to pick the correct one from a list of 10 unfamiliar names

MauriceHendrix commented 2 years ago

I just want to see what I made! So some button that makes the graphs show up, without sending me to a different page

Can we select the "default graph" by default? Or indicate it somehow in the list? Quite hard to pick the correct one from a list of 10 unfamiliar names

The default graph? How do I know which one is the default one. I've not seen that info anywhere. Is it just the first one in the list of alphabetically or ..?

MichaelClerx commented 2 years ago

@jonc125 how does the normal interface know which graph to show for a particular experiment?

MichaelClerx commented 2 years ago

What do you mean re-run? Do you mean save & go to the render? Would you prefer to always do that also when you first create the story (which would be a super easy fix) or only in sime circomstances or...? Of course we can have save & view as well as save & exit if you want.

In jupyter, you can render each cell (text or code) directly after creating. Do you think that's possible? If not, can we do it for graphs at least? I need to be able to see if I picked the right graph after I add one to the story

MauriceHendrix commented 2 years ago

What do you mean re-run? Do you mean save & go to the render? Would you prefer to always do that also when you first create the story (which would be a super easy fix) or only in sime circomstances or...? Of course we can have save & view as well as save & exit if you want.

In jupyter, you can render each cell (text or code) directly after creating. Do you think that's possible? If not, can we do it for graphs at least? I need to be able to see if I picked the right graph after I add one to the story

I think it should be probably possible, not quite sure how to style it clearly as a preview but ok.

jonc125 commented 2 years ago

@jonc125 how does the normal interface know which graph to show for a particular experiment?

It's the first one listed in outputs-default-plots.csv

MauriceHendrix commented 2 years ago

@jonc125 how does the normal interface know which graph to show for a particular experiment?

It's the first one listed in outputs-default-plots.csv

ok in that case I'll just get rid of ---- if there are graphs and order them the same as in there, so that the default one will end up selected by default

MauriceHendrix commented 2 years ago

Right so for previews I can came up with 2 ways of showing it. Which one would you prefer @MichaelClerx @mirams @jonc125 @agrawal-aditi . Either just a preview icon with a pop-up of the chosen graph (whcn clicked) or a (live) preview panel. With teh panel, I'm a bit worried that it'll tempt authors into spending time editing stuff that doesn't save (zoom level, selected items in teh legent). And it may be a bit bulky. (and I suspect the preview button would be slightly easier to implement.)

image


Or


image


By the way there is a preview already for text:

image

MichaelClerx commented 2 years ago

button is fine by me!

MauriceHendrix commented 2 years ago

Right graph preview should be working: image