gemini-hlsw / gem

prototype postgres back-end for ocs
Other
15 stars 5 forks source link

Preliminary Seqexec Support #282

Open swalker2m opened 6 years ago

swalker2m commented 6 years ago

This PR is intended to open a conversation about what is needed to provide the seqexec with access to the new program model. Initially we need to be able to fetch observations from the ODB and then load them from the database.

I added a simple Service.queryObservationById(id: Observation.Id) method to complement ocs2.importObservation(host: String, oid: Observation.Id). In theory the seqexec can create a session by logging in and then use these two methods to obtain an observation containing a sequence.

I assume the observation you get back won't align exactly with what the seqexec needs but that's the next step. Also we'll eventually want the seqexec to write datasets and events back to the database and we'll need to provide the API for that as well.

cquiroz commented 6 years ago

How would you login?

tpolecat commented 6 years ago

How would you login?

gem needs to manage external users so it has its own user/role tables.

This assumes the seqexec talks to gem through some kind of network protocol. If it talks directly to the database then the game is different I think.