master through GitHub, we have to manually publish them for our users. Itâs a relatively simple process.
Publishing Process
1. Wait for Master Update
Wait a few hours after the merge has occurred formaster to be updated and the template to be uploaded.
2. Navigate to Admin
Go to www.clearcalcs.com/admin/templates3. Find Your Template
Go to your template - you should see an orange message telling you that thereâs a newer unpublished version available:
4. Review Change Log
Double check the change-log and make sure the update severity is appropriate (this should have been set in the GitHub PR, but itâs worth a double-check).Things to Check:
- If this template removes beta status, note that in the changelog
- Some large PRs may have different changes to different templates - ensure each template has the right changelog/update severity set
- Coordinate with original PR creator if required
5. Check Beta Status
Double-check whether this template should be released as Beta. This should have been determined in the PR for the template creation or update. Check the âBetaâ box if required.Donât remove Beta tags from previous versions! Publishing a non-beta version will remove the label from the menu the users see.
6. Publish the Template
Weâre all good to publish now!- Check the âPublishedâ checkbox for the newest version
- Uncheck the previous version
In some rare cases, we may decide to keep the previous version published and release the new one as a separate beta. In that case, itâs totally OK to have both sheets published - just make sure youâre flagging the right sheet as beta!
7. Test the Template
As a good measure:- Go to a project and create a sheet with the new template
- Make sure itâs all working fine
- Even better, try to upgrade from an existing sheet and confirm itâs working
8. Add to ClearCalcs Organization (New Templates Only)
If the template is new, make sure you add ClearCalcs as an organisation using the ID:2ad7e5c6-8d23-416d-acb1-5487dc65150a
This will make sure you can add a calculation of this new template in Prod.
Steps:
- Click on âAdd to organisationâ
- Copy-paste the organisation ID
- Click on âAdd template to organisationâ
Template States and Severities
There are several different states that we can put templates in when we publish them:- Severity: Usually set in the pull request, this sets whether the template change is adding a
feature, fixing bug ofclass[X], or making the templateobsolete - Published/Unpublished: Whether or not the âPublishedâ tickbox is marked affects whatâs shown in the âAdd New Calculationâ menu, but also a few other things
- Beta: Whether a message should be shown to users indicating that weâre still testing the template
- Under Construction: A banner that can be applied via UserPilot
- Licenses: The set of users to whom the calculator should be made available
Severity Levels
One of seven severities must be set in order to publish a template. These indicate the type of change youâre making in the given template update:
Severity Classifications
Severity Classifications
Feature
- Basically anything thatâs not fixing a bug. We donât sub-categorise these any further.
- Displayed to users as: âFeatureâ
- Displayed to users as: âMinor Bug Fixâ
- Displayed to users as: âBug Fixâ
- Displayed to users as: âBug Fixâ
- Displayed to users as: âCritical Bug Fixâ
- Displayed to users as: âCritical Bug Fixâ
- Special Effect: If any class 3 bug fix is present in a userâs project, then ClearCalcs will automatically open up the âCalculation Upgradesâ screen by default
- Displayed to users as: âObsoleteâ
- Special Effects:
- Templates marked as
obsoletewill not be displayed in the âAdd New Calculationâ menu - Templates for which the most recent revision is marked as
obsoletewill not be allowed to be duplicated into a new project
- Templates marked as
Published/Unpublished States
Usually, this simply means whether or not to display the given template revision to our users in the âAdd New Calculationsâ menu. However, there are some complex scenarios:Multiple Published Versions: If multiple versions of the same template are published, then all of those versions will be displayed to users! They will be displayed one after the other within the templateâs category with probably the same icon and name, so users may not be able to tell the difference.
- Multiple published versions: All versions appear in the menu (historically used when publishing one newer âbetaâ version and an older reliable version as non-beta)
- Obsolete templates: Will NOT be displayed in the âAdd New Calculationsâ menu regardless of published status
- No published versions: Existing sheets still work, but calculator wonât appear in the âAdd New Calculationâ menu
Beta and Under Construction Status
Beta status indicates weâre still testing the template and shows a message to users accordingly. Under Construction banners can be applied via UserPilot for additional user communication.