Knack Operations
  • TABLE OF CONTENTS
  • Knack Operations Read-Only
  • Knack
    • Platform Overview
    • Functionality Guide
    • Style Guide
    • Single Sign On (SSO)
      • Configuring a new Knack App with certificates
      • Enabling SSO in Knack
      • Configuring new certificates for all Knack Apps - When certs expire!
        • SSL Certificate Management
      • Configuring an existing Knack App with certificates (Rare)
    • Banner Logos
    • Rounding Knack Costs Correctly
    • URL Parameters to populate a form
    • Importing Records
    • Copy an Application
  • Knack Integrations
    • Open Data Portal - Socrata Integration
    • ArcGIS Online Integration
    • CSR configuration prep in Knack
      • Creating CSR Page components
  • Knack Code
    • Code Version Control
    • GitHub Code Workflow
    • CODE: Retrieve builder URL of Email Rules
    • CODE: Mobile Optimization
      • Detail Labels
    • CODE: Custom Login Buttons
    • CODE: Vision Zero in Action
    • CODE: Knack Functionality
      • Big Buttons
      • Save Knack Record ID
      • Redirect Blank Menu Pages
      • Disable Trigger Buttons
      • Disable Modal Background Click/Touch
      • Disable Breadcrumb Navigation Links
      • Remove Back Links
      • Back Link Buttons
      • Return to Previous Page Button
      • Auto Input Validation Form Fields
      • Conditionally Hide/Show Form Fields
      • Return to Top Button
      • Refresh View Button
      • Detect IE
      • Set Map iFrame Source URL
    • CODE: Knack Look & Feel
      • Multipage Step Indicator
      • Modal Close Styling
      • Relabel Attachment Links
      • Navigation Dropdown Menu Buttons
      • In-Form Dropdown Menu Buttons
      • Trigger Buttons
      • Hyperlink a Form Field Label
      • Remove Table Header
      • Modify Table Summary Rows
      • Convert Values to UPPERCASE (Option A)
      • Convert Values to UPPERCASE (Option B)
      • Highlight Details View Label Body & Table Value
      • Report Headers
      • Report Filters Container Size
      • Report Element Colors
      • HighCharts Report Styling
      • Font Awesome Icons
    • CODE: Knack Print Page
      • Print Header with Page Break/Number
      • Print without overlapping views
      • Print using Menu Button
      • Print using Trigger Button
      • Show Character Limit of Input
      • Add fixed Footer on Print
  • AMD | DATA TRACKER
    • AMD | Data Tracker
    • Asset Changes
    • CSR | Flex Note Archiving
    • Cameras
    • Fix Broken CCTV Device Status Page Links
    • Performance Measures
    • Builder Notes
      • Configure New AMD Asset in Data Tracker
      • Data Tracker | Annual Signal and PHB Request Ranking
      • Page Rules (TMC) CSR
      • NOTIFICATION | Construction Status Email
      • NOTIFICATION | One Day Signal Engineer Due Date
      • DETAILS | Preventative Maintenance (PM)
      • DETAILS | Signal Detectors Object Tables, Reports, misc..
      • DETAILS | Signals
      • Signals Work Order | EDIT FORMS
      • Signals Work Order | FORM LOCATIONS
      • Editing Signals Work Order | NEW FORMS
    • Warehouse Inventory - Updating Journal Vouchers (JV) information
    • Cancel Transactions & Replenishments
    • Adjustment Transaction, Unit Cost Adjustments & Re-Stock
    • DTS | Adminstrative Action
  • DTS | Data & Technology Services Portal
    • DTS | Data & Technology Services Portal
    • Dataset inventory
    • Application Inventory
  • Finance & Purchasing
    • Finance & Purchasing Portal
    • Finance & Purchasing
      • Training, Quiz, Account Access Process
      • Statuses
      • List of emails generated
      • Re/Un-assigning Approver of a PR (Purchase Request)
      • Troubleshooting: FAQs
    • Warehouse Inventory
      • Adding a new inventory item
  • HiRe | The Hiring Resource
    • HiRe | The Hiring Resource
  • HR | Human Resources
    • HR | Human Resources Portal
    • How to add a new HR Form
  • PEP | Parking Enterprise Portal
    • PEP | Parking Enterprise Portal
    • Dispatch Resource Tracking Log Archiving
    • Update Parking Citation Report by Fiscal Year (FY)
  • ROW | Right of Way Portal
    • ROW | Right of Way Portal
    • COS JV Update
  • RPP | Residential Parking Permit Portal
    • RPP | Residential Parking Permits
    • Residential Parking Permits
    • RPP Migration
  • SBO | Street & Bridge Operations
    • SBO | Street & Bridge Operations
  • SMD | Signs & Markings Operations
    • SMD | Signs & Markings Operations
    • Table of Contents
    • Workflow
    • Markings | Work Orders
      • Process & Module Functionality
    • Markings | Service Requests
      • Process & Module Functionality
    • Signs | Work Orders
      • Process & Module Functionality
    • Signs | Service Requests
      • Process & Functionality
    • Contractor | Work Orders
      • Process & Module Functionality
    • Sign Fabrication Work Orders
      • Process and Functionality
    • Special Functions/Codes
      • Work Order Attachments
  • SMO | Smart Mobility Operations
    • SMO | Smart Mobility Portal
  • SMS | Shared Mobility Services
    • SMS | Shared Mobility Portal
    • License & Permit Management
    • Sources for Monthly Trip Records
  • STREET BANNER PROGRAM
    • Street Banner Program
    • Street Banner Program
  • TDS | Transportation Development Services
    • TDS | Transportation Development Services Portal
    • Color Palette
    • Role Permissions Guide
    • App Logic
      • Calculating Date Values for Reporting
      • Incrementing Review Cycle Automatically
      • Calculating Review Time & On Time Percentage
      • Calculating Cycle Completion Percentage
      • Calculating an Expiration Date
      • Automatic Due Date with Manual Adjustment
      • Roll up Child Object Conditionals
      • Converting an Entered Percentage to a Percentage Value
      • Create a Connection Link Field to View a Searched Record
      • Extracting Location Coordinates to add a Map Marker Map
    • TDR | Development Reviews
    • TIA | Traffic Impact Analysis
    • TDA | Transportation Development Assessments
  • Traffic Register
    • Traffic Register
    • Table of Contents
    • Workflow
    • Modules
    • Special Functions/Code
    • Permissions
  • TPW Forms
    • TPW Forms
  • VZA | Vision Zero in Action
    • VZA | Vision Zero in Action
    • Batch Copy Process for VZA Assignments
    • Calculate School Closures
    • Login Process for Officers
    • Officer Records
    • Update reports in Power BI
    • Use Tasks for Creating Child Records
    • Use Tasks for Notifications
  • O365 Resources
    • Resources
Powered by GitBook
On this page
  • Github Repo - Knack Code
  • Copying the code from the TEST application
  • Navigate to ATD-Knack GitHub Repo
  • Creating a Commit
  • Creating a branch from a commit
  • Creating a Pull Request
  • Assign a Reviewer
  • Reviewing a Pull Request
  • Approving Pull Request
  • Pull Request Approved - Add Code to Production
  • Merging Branches
  • Deleting Branches

Was this helpful?

  1. Knack Code

Code Version Control

https://github.com/cityofaustin/atd-knack/tree/master/code

PreviousCreating CSR Page componentsNextGitHub Code Workflow

Last updated 3 years ago

Was this helpful?

- Knack Code

Copying the code from the TEST application

  • From the Knack builder, copy the contents of the JS or CSS file that you have modified.

  • ATD-Knack>Code>App Name>.css or .js file

    1. Click the "code" folder

    2. Select the app name you're working on (ex. sandbox-app)

    3. Select the ".css" or ".js" folder

    4. Click on the pencil icon at the top right of the page to edit the code

Creating a Commit

  • Replace the contents of the file with the new code version that you copied from the test application

  • At the bottom of the page, write a descriptive title and summary of what changes you made, and why.

Creating a branch from a commit

  1. Choose the option "Create a new branch for this commit and start a pull request"

  2. Give the new branch a meaningful name,

    1. "name-issue ID-simple-title-of-change" - dianamartin-6100-css-code-change-to-document

  3. Click "Propose changes"

Creating a Pull Request

  • A pull request is automatically created on the next screen, confirm your pull request by clicking the green "Create pull request" button.

Assign a Reviewer

  • Lastly, you should assign a reviewer to check your code.

  • On the right side of the page find the cog icon next to "Reviewers", and select one of your colleagues to review the code (preferably from your own team first, then Dev team)

Post a slack on the "atd-knack" channel to see if one of your colleagues is available to review

Reviewing a Pull Request

You will receive an email from GitHub if you're assigned to review a pull request

Approving Pull Request

  • Navigate to the pull request

  • Under the "Commit" tab, click the commit name to open

  • Click the "+" sign beside the green highlighted code to "Add a single comment" or "Start a review"

  • Once you're done reviewing, click the "Finish your review" button on the top right

  • Enter in some comments, click "Approve" and click "Submit review"

Remember: Pull request authors can't "Approve" their own pull requests!

Pull Request Approved - Add Code to Production

  • Wait for the pull request to be approved

  • once it’s approved, copy/paste your code in the Knack TEST environment to PROD environment

  • make sure the code is working

Merging Branches

  • Click "Merge pull request" to merge your changes to the master branch

  • Will be prompted to "Confirm merge"

  • You will see this next message that your pull request was successfully merged and closed

Deleting Branches

  1. Option 1: Click the "Delete branch" in the message prompt

  2. Option 2: Navigate to main repo page "atd-knack"

  • Beside the "master" drop down, click "branches"

  • Find the branch you name and click the "Delete" icon

Navigate to ATD-Knack

ATD-Knack where all Knack app code is maintained.

GitHub Repo
GitHub Repo
Github Repo
Main code folder of the app code
Sub folder of data-tracker
Example of a pull request with an assigned Reviewer
Example of email received when you've been assigned
Example of "Approved" pull request