Go to file
Cameron Sutter eb880955bd dont allow duplicate thresholds
closes MBL-10504

test plan:
- using the api endpoint below, try to create a threshold
  with an alert_type that already exists for a user/observer
- it shouldn't create a new threshold, just update the
  value for "threshold"

endpoint: POST /users/:user_id/observer_alert_thresholds

Change-Id: I64870ea5414b83d984cb4a71ff106bfb1d532d1b
Reviewed-on: https://gerrit.instructure.com/150515
Tested-by: Jenkins
Reviewed-by: Matthew Sessions <msessions@instructure.com>
QA-Review: Kausty Saxena <ksaxena@instructure.com>
Product-Review: Cameron Sutter <csutter@instructure.com>
2018-05-21 21:02:24 +00:00
Gemfile.d fix test-queue deprecation 2018-05-21 15:45:42 +00:00
app dont allow duplicate thresholds 2018-05-21 21:02:24 +00:00
bin consolidate contract tests 2018-05-18 22:34:20 +00:00
build update bundler in Dockerfiles 2018-04-23 20:47:34 +00:00
client_apps Remove a couple explicit keys to make i18n refactor easier 2018-04-25 20:00:15 +00:00
config update he translation 2018-05-21 06:00:29 -06:00
db/migrate dont allow duplicate thresholds 2018-05-21 21:02:24 +00:00
doc canvas.docker is a development only hostname 2018-05-10 21:56:07 +00:00
docker-compose update js-tests to node 8 and fix cmd 2018-04-06 17:46:58 +00:00
frontend_build removed unused webpack code 2018-05-02 16:36:12 +00:00
gems update total_lines before queueing jobs in reports 2018-05-15 17:56:01 +00:00
jest let jest know about some of our aliases 2018-01-12 19:16:18 +00:00
lib consolidate contract tests 2018-05-18 22:34:20 +00:00
packages don't focus planner item link on toggle 2018-05-21 20:00:00 +00:00
public spec: clean up some spec pollution 2018-05-18 00:11:00 +00:00
script don't delete linked packages with yarn install 2018-05-09 19:22:17 +00:00
spec dont allow duplicate thresholds 2018-05-21 21:02:24 +00:00
.babelrc add babel-plugin-transform-runtime for smaller JS 2017-10-12 14:35:46 +00:00
.bowerrc introduced bower to manage js dependencies 2013-12-13 17:45:57 +00:00
.codeclimate.yml disable ESLint in code climate 2017-02-14 17:47:39 +00:00
.dockerignore fix canvas-planner docker build process 2018-04-17 14:44:18 +00:00
.editorconfig Add EditorConfig configuration file to help maintain code style 2016-11-15 20:08:55 +00:00
.eslintignore ignore AmbiguousBlockAssociation for specs 2018-02-12 18:37:09 +00:00
.eslintrc.js Make it so permissions opts-in to use prettier now 2018-05-09 15:08:32 +00:00
.gitignore consolidate contract tests 2018-05-18 22:34:20 +00:00
.i18nignore bump rails 3 to github branch for ruby 2.2 compatibility 2015-02-18 22:55:20 +00:00
.i18nrc upgrade to node 6 2016-08-09 23:37:07 +00:00
.jshintrc make jslint settings more sane 2012-08-17 11:04:40 -06:00
.npmrc fix brand config previewing and skipping 2015-10-27 16:16:15 +00:00
.nvmrc Use node 8.10.0 instead of 8.9.4 2018-03-09 18:56:22 +00:00
.prettierrc Add .prettierrc so it matches our existing code 2017-11-03 16:21:50 +00:00
.rubocop.yml don't care about this cop 2018-04-25 20:14:29 +00:00
.selinimumignore Revert and bring InstIcons into Canvas 2016-11-29 20:52:54 +00:00
.stylelintrc stylelint, refs SD-1603 2016-10-25 00:21:16 +00:00
.travis.yml more travis builds 2014-02-10 16:23:19 +00:00
CONTRIBUTING.md Add CLA FAQ from legal 2018-01-22 16:41:44 -05:00
COPYRIGHT Initial commit. 2011-01-31 18:57:29 -07:00
Dockerfile consolidate contract tests 2018-05-18 22:34:20 +00:00
Dockerfile-production update bundler in Dockerfiles 2018-04-23 20:47:34 +00:00
Gemfile allow choosing rails 5.1 via consul 2017-10-11 19:13:02 +00:00
LICENSE Initial commit. 2011-01-31 18:57:29 -07:00
README.md Update README.md since Canvas is still modern 2016-12-15 03:18:28 +00:00
Rakefile remove dead parallelized specs task 2016-11-10 21:41:08 +00:00
bower.json use node_modules wherever possible 2016-11-01 15:14:52 +00:00
code_of_conduct.md contributor code of conduct 2014-12-23 18:13:59 +00:00
config.ru remove extra logging to debug Passenger connection orphan issue 2017-07-14 16:27:03 +00:00
docker-compose.jenkins.yml Rename docker-compose.test.yml 2017-05-17 18:51:53 +00:00
docker-compose.override.yml upgrade yarn to 1.6.0 2018-04-19 20:31:06 +00:00
docker-compose.yml Use redis:alpine 2017-07-31 22:31:40 +00:00
gulpfile.js speed up font loading stuff a bit 2018-05-03 19:44:27 +00:00
issue_template.md Make issue template disclaimer a comment 2018-05-01 15:00:27 +00:00
jest.config.js spec: restrict jest filename matching 2018-03-06 20:24:50 +00:00
karma.conf.js speed up JS tests by running them concurrently 2018-01-16 19:32:28 +00:00
package.json @inst/ui-icons -> inst-icons in course user search 2018-05-17 20:06:33 +00:00
schema.graphql fix context cards for concluded users 2018-05-01 17:18:45 +00:00
webpack.config.js don't pass frontend build files through babel 2016-11-08 20:29:29 +00:00
webpack.production.config.js a couple uglifyJS settings to make prod debugging easier 2018-05-03 19:52:15 +00:00
webpack.test.config.js speed up JS tests by running them concurrently 2018-01-16 19:32:28 +00:00
yarn.lock rce: upgrade demo to InstUI 5 & add RTL toggle 2018-05-21 19:18:31 +00:00

README.md

Canvas LMS

Canvas is a modern, open-source LMS developed and maintained by Instructure Inc. It is released under the AGPLv3 license for use by anyone interested in learning more about or using learning management systems.

Please see our main wiki page for more information

Installation

Detailed instructions for installation and configuration of Canvas are provided on our wiki.