Use db for exchange mechanism #1643
Replies: 9 comments
-
This is a good call.... and we've discovered there are three different
solutions for the problem.
There is, indeed, a group working on it..
…On Thu, 30 May 2019, 6:16 am Ryan Lovett, ***@***.***> wrote:
Perhaps for Edinburgh-Hackathon...
The exchange directory ties assignment movement to a shared filesystem.
I'm wondering if storing files in a database (or first pass just having a
higher level abstraction) would be more flexible for hubs with distributed
notebook servers.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1095?email_source=notifications&email_token=AALJCDHXTKZ4PYPIWXFFGSTPX5PL7A5CNFSM4HQ5ND52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GWUQBSQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AALJCDCZB7JYZ6ZRWUAO4HTPX5PL7ANCNFSM4HQ5ND5Q>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi @perllaghu , do you have pointers to these three solutions or the place where they're being discussed? |
Beta Was this translation helpful? Give feedback.
-
@perllaghu At least two courses at Berkeley would like to use one of the three solutions for next semester, so we'd really appreciate any feedback you might have about whom we should coordinate with in order to implement a solution that could be merged upstream into master. |
Beta Was this translation helpful? Give feedback.
-
So what we have is an external service that GETs/PUTs We then created a parallel version of the files in The exchange service uses a database to track things.... and note the use of relationships in the ORM: assignments are We have an actions table:
assignments table:
Courses:
Notebooks (note, this is a bad setup, and we need to change notebooks to relate to actions, not assignments - as the number & names of notebooks may actually change!)
subscriptions:
... and users:
To get the external service to return a list of assignments, we have code like this [this has been stripped back for here]
(We do plan to release this code as an extension to nbgrader - however we need to work out how to make the exchange service a plugin, so we others can cleanly use our code. and correct the [wrong] |
Beta Was this translation helpful? Give feedback.
-
Awesome, thanks for this and for the link to the other issue! |
Beta Was this translation helpful? Give feedback.
-
@perllaghu Is the full code in a public repo somewhere? |
Beta Was this translation helpful? Give feedback.
-
Sadly, not yet.... we plan to, but other stuff gets in the way :( |
Beta Was this translation helpful? Give feedback.
-
@ryanlovett nbgrader now supports an external exchange service, so you can write your own plugin to use a database. Our version is an external exchange is here: https://github.com/edina/nbexchange |
Beta Was this translation helpful? Give feedback.
-
Thanks @perllaghu ! I had been following the Davis project. Congrats on the success of your two efforts! |
Beta Was this translation helpful? Give feedback.
-
Perhaps for Edinburgh-Hackathon...
The exchange directory ties assignment movement to a shared filesystem. I'm wondering if storing files in a database (or first pass just having a higher level abstraction) would be more flexible for hubs with distributed notebook servers.
Beta Was this translation helpful? Give feedback.
All reactions