marineenergy / apps

shiny apps for marineenergy.app
https://marineenergy.github.io/apps/
MIT License
3 stars 1 forks source link

DTedit: read and write to ferc_docs and ferc_doc_tags #38

Open cdobbelaere opened 3 years ago

cdobbelaere commented 3 years ago

Hi @bbest, what specific aspects of the ferc_docs table do we want to make editable?

bbest commented 3 years ago

Like in tech notes:

image

bbest commented 3 years ago

Hi @cdobbelaere,

Is there a working version of the DTedit app with the tables tethys_docs and tethys_doc_tags?

I tried /share/github/apps_cdob/DTedit_test_v2/app.R but that one has some funky incomplete lines 315-359 after #* get labels ---- and hasn't been checked in, so you're presumably still working on it.

Perhaps you could get the basic working version and then create a new pull request: master <- apps_cdob.

Then we can add a link to show a "production" version of it from the master branch while you continue to develop in your apps_cdob version of it.

Update. Remembering that we got some basics to work in the last commit, I went ahead with my suggestion:

  1. Merged https://github.com/marineenergy/apps/pull/45.
  2. In RStudio with apps project selected, did a Git Pull.
  3. In Terminal, symbolically linked the app:
    sudo ln -s /share/github/apps/DTedit_test_v2 /srv/shiny-server/edit
  4. Visit app at https://shiny.marineenergy.app/edit/
bbest commented 3 years ago

Also, do you have any idea how to incorporate HTML / css styling in the Tags selectInput dropdown menu?

Hi @cdobbelaere,

As far as styling , here are some good tips worth experimenting with:

bbest commented 3 years ago

We already have automated Tethys Publications pulling with scripts/update.R.

It would be nice to be able to edit the Projects, select from drop-down of existing Documents / Attachments or upload one's own (so perhaps doing so with googledrive using non-interactive-auth.