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

WIP-is730/Direct link to study #734

Closed
wants to merge 54 commits into from

Conversation

ignapas
Copy link
Contributor

@ignapas ignapas commented Apr 29, 2019

What do these changes do?

Necessary changes and refactor on the client side to make a study directly accessible from an external link.

  • Trying to use an existing token to login, thus skipping the login screen and directly landing in the project browser.
  • Making it possible to directly link an existing study and show it right away in the front-end.

Related issue number

#730

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Runs in the swarm
  • If you design a new module, add your user to .github/CODEOWNERS

@ghost
Copy link

ghost commented Apr 29, 2019

DeepCode analyzed this pull request.
There is 1 new info report.

Click to see more details.

@ignapas ignapas changed the title WIP-is730-Direct link to study WIP-is730/Direct link to study Apr 29, 2019
@codecov-io
Copy link

codecov-io commented Apr 29, 2019

Codecov Report

Merging #734 into master will decrease coverage by 10.25%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #734       +/-   ##
===========================================
- Coverage   70.15%   59.89%   -10.26%     
===========================================
  Files         121       67       -54     
  Lines        4945     2516     -2429     
===========================================
- Hits         3469     1507     -1962     
+ Misses       1476     1009      -467
Impacted Files Coverage Δ
...erver/src/simcore_service_webserver/rest_models.py 0% <0%> (-91.18%) ⬇️
...er/src/simcore_service_webserver/storage_routes.py 24.13% <0%> (-75.87%) ⬇️
...er/src/simcore_service_webserver/login/handlers.py 22.74% <0%> (-63.99%) ⬇️
...er/src/simcore_service_webserver/users_handlers.py 37.34% <0%> (-62.66%) ⬇️
...erver/src/simcore_service_webserver/application.py 47.05% <0%> (-45.1%) ⬇️
...eb/server/src/simcore_service_webserver/storage.py 55% <0%> (-45%) ⬇️
...imcore_service_webserver/reverse_proxy/__init__.py 54.16% <0%> (-41.67%) ⬇️
...simcore_service_webserver/reverse_proxy/routing.py 46.34% <0%> (-41.47%) ⬇️
.../src/simcore_service_webserver/storage_handlers.py 43.13% <0%> (-41.18%) ⬇️
...server/src/simcore_service_webserver/cli_config.py 33.33% <0%> (-36.37%) ⬇️
... and 72 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 ca87e0a...2c92668. Read the comment docs.

@ghost
Copy link

ghost commented Apr 29, 2019

DeepCode analyzed this pull request.
There is 1 new info report.

Click to see more details.

@pcrespov pcrespov mentioned this pull request May 7, 2019
5 tasks
@ghost
Copy link

ghost commented May 9, 2019

DeepCode analyzed this pull request.
There are 4 new info reports. 1 info report was fixed.

Click to see more details.

@ghost
Copy link

ghost commented May 13, 2019

DeepCode analyzed this pull request.
There are 4 new info reports. 1 info report was fixed.

Click to see more details.

@ghost
Copy link

ghost commented May 13, 2019

DeepCode analyzed this pull request.
There are 6 new info reports. 1 info report was fixed.

Click to see more details.

pcrespov added a commit that referenced this pull request May 13, 2019
Implements a first prototype for issue #730 

Adds new subsystem ``services/web/server/src/simcore_service_webserver/studies_access.py``
 - Open services/web/server/tests/sandbox/*.md and click any link
 - If user is logged in, it copies the project and displays it
 - if anonymous, it creates a temporary user and does the previous step
 - Merges changes from PR #734 that contains the UI part.
   - queries id in url and opens page with specified study
   - fixes log out
   - preview of permissions (client-side only)

Next step will incorporate privileges and user roles on the server side.
 Conflicts:
	services/web/server/tests/requirements.txt
@ignapas ignapas closed this May 21, 2019
sanderegg added a commit that referenced this pull request May 22, 2019
* Delete settings.json

* Fixes for alpha tester (#748)

* fake-template-projects.json created. 2 templates moved here
* Kember use case added
* MattWard use case added
* 4x CC 0D added
* Provide a way to refetch data from DataManager
* connect the kember-model to the kember-viewer
* moved null handler to node_ports package
* set node ports log level to same as sidecar
* removed Unused import logging
* New issue: add UX_improvemnts label and asign it to oSPARC Product Backlog project

* Permission policies (#731)

* LinkButton and LinkLabel moved
* Project -> Study
* default hardcoded permissions added
* Added some restrictions
* Link -> Edge
* Moved permission checks to data level
* Set Default Role
* more permission checks
* token permission checks
* datcore read permission check
* study.node.data.* permission check
* study.node.rename permission check
* services.filtered.read permission check
* fixed plotly minor bug
* Test permissions
* Moved some removeNode code to Workbench
* Moved removeEdge code to Workbench
* test edge create/delete
* test node rename
* deserializeNodes and deserializeEdges added
* deserializeEdges fixed for 'outputNode's
* got rid of canStart
* Typo: presgined -> presigned
* do not allow anonymous users to add/delete tokens
* do not allow anonymous users to update user profile

* Frontend privileges. 2nd iteration (#753)

* help points to our itisfoundation.github.io
* typo
* Do not show Debug level in logger to User and Anon
* Do not show nodeIds in NodesTree to User and Anon
* Tester and higher level roles can switch their role to a lower one

* Is730/serve studies (#747)

Implements a first prototype for issue #730 

Adds new subsystem ``services/web/server/src/simcore_service_webserver/studies_access.py``
 - Open services/web/server/tests/sandbox/*.md and click any link
 - If user is logged in, it copies the project and displays it
 - if anonymous, it creates a temporary user and does the previous step
 - Merges changes from PR #734 that contains the UI part.
   - queries id in url and opens page with specified study
   - fixes log out
   - preview of permissions (client-side only)

Next step will incorporate privileges and user roles on the server side.

* Quick fixes (#742)

A couple of iframe bugs fixed:

Maximizing an iframe now works.
We can now resize a SidePanel over an iframe
Other bugs:

File picker bug fixed. #741

* Update study_access_demo.md

Added link to actual emulator [skip travis-ci]

* Logger context dependant (#754)

* replace label by nodeId in logger
* Bring back the update page alert window
* added link to version/commit to login page
* startInteractiveNode out from populateNodeData
* Log message changes when label is changed
* Logger node context dependant

* Is234/compile requirements (#733)

Implements #234 : normalizes dependencies for python packages in osparc-simcore repository

- documented (see ``docs/python-dependencies.md``) new workflow with python requirements
- updates ``packages`` and ``services`` 
- updates ``ops\travis`` CI
   - moves out a part of unittest ``simcore-sdk`` into a new unit-test for ``service-library``
   - installation is always performed as ``pip install -r requirements/ci.txt ``
   -  @mguidon,  sidecar as NO tests (created ``ops\tracis`` but disabled)!

* Fixed makefile for all OS
* Fixing storage tests:
 - downgraded aiopg until bug is fixed
* Fixes overlapping port
* Enhaces doc
* Downgraded aio-pika
 - avoid test-errors in webserver integration!
 - cleanup

* Fix input node's title (#771)

* fix #770

* Improve CI/CD for simcore and add staging/production stages (#738)

build docker images once and push to dockerhub
pull from dockerhub for testing
implement release workflow

* Is788/allow different stack name (#789)

* director/sidecar independant of stack name using SWARM_STACK_NAME
* allow choosing port where simcore platform is available

* fixed link to image

* Maintenance/update requirements (#792)

* Upstead api/tests requirements
* Updates travis system-testing requirements
* Updated s3wrapper requirements
* update servicelib requirements
* Updates simcore-sdk requirements and with this all packages requirements
* Updates apihub/tests requirements
* Fixes missing ops/travis requirements
* Updates director
* Updates sidecar
* updated storage

* Fix: 2 file management bugs (#782)

* getLowerRoles fixed
* CopyFile returns true/false if request sent + test
* DeleteFile returns true/false if request sent + test
* getChildrenRoles by checking inheritance
@ignapas ignapas deleted the is730/direct-link branch August 27, 2019 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants