Tina has found that when explicitly setting the group to RAL Projects in the XML specification file, the database is loaded in the METviewer mariaDB database, but is placed in the incorrect group.
Expected Behavior
on 'mohawk', using the following script to set up the METviewer database (MAKE MODIFICATIONS TO CREATE A DIFFERENT DATABASE):
#!/bin/sh -v
dbname="mv_debugging"
#host="mohawk"
host="localhost"
#metv="/d2/projects/METViewer/src/apps/METviewer"
metv="/d2/personal/mwin/Debug_METdataio_for_METviewer/METdataio/METdbLoad"
#path2proj="/d2/projects/UAE_tk/metv"
path2proj="/d2/personal/mwin/Debug_METdataio_for_METviewer/METdataio/METdbLoad/sql"
mvuser="mvuser"
#mvuser="mvadmin"
mvpass="mvuser"
#mvpass="160GiltVa0D5M"
# Drop the database before creating
mysql -h${host} -u${mvuser} -p${mvpass} -e"drop database ${dbname};"
mysql -h${host} -u${mvuser} -p${mvpass} -e"create database ${dbname};"
mysql -h${host} -u${mvuser} -p${mvpass} ${dbname} < ${metv}/sql/mv_mysql.sql
${metv}/bin/mv_load.sh ${path2proj}/load_${dbname}.xml > ${path2proj}/load_${dbname}.log 2>&1
Next, use the following specification file (MAKE MODIFICATIONS TO MATCH THE DATABASE CREATED ABOVE and point to the correct paths for the schema):
[ ] Submit a pull request to merge into main_\.
Pull request: bugfix <Issue Number> main_<Version> <Description>
[ ] Define the pull request metadata, as permissions allow.
Select: Reviewer(s) and Development issues
Select: Organization level software support Project for the current coordinated release
Select: Milestone as the next bugfix version
[ ] Iterate until the reviewer(s) accept and merge your changes.
[ ] Delete your fork or branch.
[ ] Complete the steps above to fix the bug on the develop branch.
Branch name: bugfix_<Issue Number>_develop_<Description>
Pull request: bugfix <Issue Number> develop <Description>
Select: Reviewer(s) and Development issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
loading code expects both tags to be present and . Only in this case 'group' data is loaded into the database.
In reality, is optional. Need to change the code to load even the is missing
The initial value of self.description is 'None'. it should be an empty sting.
The logic for inserting group and description also needs to be fixed also
Describe the Problem
Tina has found that when explicitly setting the group to RAL Projects in the XML specification file, the database is loaded in the METviewer mariaDB database, but is placed in the incorrect group.
Expected Behavior
on 'mohawk', using the following script to set up the METviewer database (MAKE MODIFICATIONS TO CREATE A DIFFERENT DATABASE):
Next, use the following specification file (MAKE MODIFICATIONS TO MATCH THE DATABASE CREATED ABOVE and point to the correct paths for the schema):
Verify that the new database you created above is NOT in the RAL Projects group via METviewer: http://dtcenter.ucar.edu/met/metviewer/metviewer1.jsp
by looking under the RAL Projects group for the database you created.
Environment
Describe your runtime environment: 1. Machine: (e.g. HPC name, Linux Workstation, Mac Laptop) 2. OS: (e.g. RedHat Linux, MacOS) 3. Software version number(s)
To Reproduce
Describe the steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error Post relevant sample data following these instructions: https://dtcenter.org/community-code/model-evaluation-tools-met/met-help-desk#ftp
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Bugfix Checklist
See the METplus Workflow for details.
bugfix_<Issue Number>_main_<Version>_<Description>
bugfix <Issue Number> main_<Version> <Description>
bugfix_<Issue Number>_develop_<Description>
Pull request:bugfix <Issue Number> develop <Description>
Select: Reviewer(s) and Development issues Select: Repository level development cycle Project for the next official release Select: Milestone as the next official version