Testing
Publishing a Test Record
Determine your workflow for testing:
If you do not already have items on ScienceBase. Choose a project and its products to test.
Best Management Practice: It’s recommended that you export a project and its products into its own mdEditor file. Set default parent identifier as a ScienceBase folder.
If you do already have items on ScienceBase, choose one of the following approaches. Note that this procedure may affect your existing records.
Approach #1) Take a simple project and product set, and make a copy of the mdEditor records. In the test version, delete all ScienceBase IDs (SBIDs) and parent IDs. The SBID will either be located in the citation, or if you imported the record from SB, the SBID will be the record identifier. Set default parent identifier as a folder.
Approach #2) Publish directly to a real record if you have confirmed a backup copy exists, in the event that the record is deleted in ScienceBase.
Set your Default Parent Identifier in Settings / Publishing Settings.
Select one project with its associated products to test.
Follow the publishing instructions above for the scenario that applies to you.
Look for any errors in the third column. If you see an error that is 400 and red, it’s a problem that you can address. However, if it’s a 500 level error in red, that is a ScienceBase error that is outside the scope of the mdEditor.
NOTE: Any unsolvable issues can be submitted on the issues page for mdEditor: https://github.com/adiwg/mdEditor/issues. You must have a github account in order to post. Advanced users can check errors using the browser console.
Verify your test records have published as expected in your folder on ScienceBase (or to the real record if that’s how you are testing).
After you are satisfied with how your test records published to ScienceBase, continue to step 10.
Update your mdEditor Settings / Publishing Settings to your real Default Parent Identifier.
Using the record you just tested, proceed with publishing to the real location on ScienceBase.
Make sure any test SBIDs are removed entirely from the record you want to actually publish.
Verify that the real records have updated as expected.
Proceed with publishing your other records to their real locations. It is advisable to publish 1 or 2 records at a time, since ScienceBase can time-out and fail when publishing records simultaneously.