Giter Club home page Giter Club logo

support-rota's Introduction

Support Rota

A Rails app that returns the dxw Support and Out of Hours rotas from Opsgenie in iCal and JSON formats.

Getting started

  1. Install Docker for Mac

  2. copy /.env.example into /.env.development.local.

    Our intention is that the example should include enough to get the application started quickly. If this is not the case, please ask another developer for a copy of their /.env.development.local file.

    dxw specific values are stored in the Shared 1password vault.

  3. Run the server:

script/server

The data is available at the following routes:

Support rota (dev and ops eng)

Out of hours (1st and 2nd lines)

Developer

Ops engineer

OOH First line

OOH Second line

Running the tests

script/test

Running Brakeman

Run Brakeman to highlight any security vulnerabilities:

brakeman

To pipe the results to a file:

brakeman -o report.text

Making changes

When making a change, update the changelog using the Keep a Changelog 1.0.0 format. Pull requests should not be merged before any relevant updates are made.

Releasing changes

When making a new release, update the changelog in the release pull request.

Architecture decision records

We use ADRs to document architectural decisions that we make. They can be found in doc/architecture/decisions and contributed to with the adr-tools.

Managing environment variables

We use Dotenv to manage our environment variables locally.

The repository will include safe defaults for development in /.env.example and for test in /.env.test. We use 'example' instead of 'development' (from the Dotenv docs) to be consistent with current dxw conventions and to make it more explicit that these values are not to be committed.

To manage sensitive environment variables:

  1. Add the new key and safe default value to the /.env.example file eg. ROLLBAR_TOKEN=ROLLBAR_TOKEN
  2. Add the new key and real value to your local /.env.development.local file, which should never be checked into Git. This file will look something like ROLLBAR_TOKEN=123456789

Access

The app is hosted on Heroku at https://dxw-support-rota.herokuapp.com.

Source

This repository was bootstrapped from dxw's rails-template.

support-rota's People

Contributors

beelorna avatar cristinaro avatar dependabot[bot] avatar dxw-rails-user avatar edavey avatar floppy avatar jacksonj04 avatar lawrence-forooghian avatar leeky avatar lgtm-migrator avatar lozette avatar pezholio avatar renovate[bot] avatar rjw1 avatar shuldt avatar tahb avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lgtm-migrator

support-rota's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • Update dependency launchy to v3

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • Update dependency mini_racer to v0.12.0

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bundler
Gemfile
  • ruby 3.3.1
  • bootsnap ">= 1.1.0"
  • bootstrap ">= 4.3.1"
  • coffee-rails "~> 5.0"
  • haml-rails undefined
  • high_voltage undefined
  • icalendar undefined
  • jbuilder "~> 2.11"
  • jquery-rails undefined
  • pg undefined
  • mini_racer undefined
  • opsgenie-schedule undefined
  • puma undefined
  • rollbar undefined
  • rails "~> 7.1.0"
  • sass-rails "~> 6.0"
  • turbolinks "~> 5"
  • redis-rails undefined
  • redis "~> 4"
  • listen ">= 3.0.5", "< 3.9.1"
  • spring undefined
  • spring-watcher-listen "~> 2.1.0"
  • web-console ">= 3.3.0"
  • capybara ">= 2.15"
  • factory_bot undefined
  • launchy undefined
  • selenium-webdriver undefined
  • timecop undefined
  • webmock undefined
  • better_errors undefined
  • html2haml undefined
  • rails_layout undefined
  • spring-commands-rspec undefined
  • brakeman undefined
  • bullet undefined
  • byebug undefined
  • dotenv-rails undefined
  • factory_bot_rails undefined
  • faker undefined
  • pry undefined
  • rspec-rails undefined
  • standard undefined
docker-compose
docker-compose.test.yml
docker-compose.yml
dockerfile
Dockerfile
  • ruby 3.3.1
github-actions
.github/workflows/codeql.yml
  • actions/checkout v4
  • github/codeql-action v2
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/continuous-integration.yml
  • actions/checkout v4
npm
package.json
ruby-version
.ruby-version
  • ruby 3.3.1

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.