Skip to content

Editing Old Rule Pages in Archive

Jeoffrey Fischer [SSW] edited this page Aug 13, 2024 · 26 revisions

Context

When the old SSW Website V1 was migrated to the new SSW Website, many of the old Rules pages were archived as static HTML at www.ssw.com.au/archive. Some of this content might still be relevant.
To keep track of which Rules are migrated from www.ssw.com.au/archive to www.ssw.com.au/rules, we should add a note with an emoji in the relevant Rule's HTML file.

Available Emojis

The emojis that can be used are the following:

  • Migrated to {{ LINK TO RULE }}
  • 🗒️ Archived to {{ LINK TO RULE }}
  • Pending Review from {{ REVIEWER NAME }}
  • Not Migrated because {{ REASON }}

Steps to Edit an Old Static HTML Rule

  1. Access the Repository:
    Go to the repository where the archived rules are stored: SSW.Website-v1-Progress
  2. Locate the Rule:
    Navigate to the specific Rule that needs editing.
    💡 Tip: Use the page URL for easier navigation.
    For example, if the Rule is at www.ssw.com.au/archive/standards/rules/rules-to-better-sql-reporting-services.html, navigate to SSW.Website-v1-Progress | archive | standards | rules | rules-to-better-sql-reporting-services.html.
  3. Click the "✏️ Edit this file" button in the top-right corner
  4. Make changes on the page. This is where you can add emojis ✅🗒️⌛❌ and details as shown in the previous section.
  5. Click "Commit changes" in the top-right corner
  6. Write a commit message
  7. If your changes are small, commit directly to main
    If your changes are big, create a new branch, create a pull request and get it checked by another Dev
  8. Click on "Squash and Merge"

You should see your changes in a couple minutes.

Screenshot

Below is an example of some rules that have been updated with an emoji

image Figure: Old rules stored as HTML under /archive with an added line to help tracking