You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered an issue while adding support for editing templates. If a user edits a template everything works as intended including being able to refresh the page. However, if a user plots using the edited template, an identical temporary template gets created. This is not immediately apparent since templates are only populated on load. Once the user refreshes the page, the temporary templates are shown.
I have looked through my code but I only see a single call to create a temporary template, and my testing did not show that line being ran.
Is there something else happening behind the scenes that I am missing, or did I make a mistake in my code? @doutriaux1@scottwittenburg
Instructions below for setting up the dev branches for both vCDAT and vcs-js.
Make sure you have cloned the vcs and vcdat repos.
If you have not already set up a conda environment for vCDAT run ./scripts/setup.sh
Source your vCDAT environment. E.g. source activate nightly or conda activate nightly
cd into the vcs-js project directory and checkout the add_template_functions branch
Run python setup.py install
Next, cd into the vcdat project directory and checkout the fix_template_editor branch
Run ./scripts/autorun.sh
Open your browser and navigate to localhost:5000
To recreate the issue, edit the 'default' template, change something such as mean's X value and save
Then load a variable of your choice, and drag it into the plotting area.
Once the plot loads, refresh the page.
You should see a template named something like __template_861925014236853
The text was updated successfully, but these errors were encountered:
I have encountered an issue while adding support for editing templates. If a user edits a template everything works as intended including being able to refresh the page. However, if a user plots using the edited template, an identical temporary template gets created. This is not immediately apparent since templates are only populated on load. Once the user refreshes the page, the temporary templates are shown.
I have looked through my code but I only see a single call to create a temporary template, and my testing did not show that line being ran.
Is there something else happening behind the scenes that I am missing, or did I make a mistake in my code?
@doutriaux1 @scottwittenburg
Instructions below for setting up the dev branches for both vCDAT and vcs-js.
./scripts/setup.sh
source activate nightly
orconda activate nightly
cd
into the vcs-js project directory and checkout theadd_template_functions
branchpython setup.py install
fix_template_editor
branch./scripts/autorun.sh
localhost:5000
__template_861925014236853
The text was updated successfully, but these errors were encountered: