Go to file
Brian Palmer 6f7e610124 support cassandra 1.2+ consistency level usage
This changed from a part of the query string in cassandra 1.1 to a
separate parameter passed to execute in cassandra 1.2 and above.
Unfortunately we need to jump through some hoops to support both, until
we've fully upgraded to 1.2.

This commit adds a placeholder to the query string %CONSISTENCY% that
will be replaced with the chosen level in 1.1, and replaced with the
empty string in 1.2. Once we've upgraded to 1.2, we can remove all this
as it'll just be another option to the method.

closes CNVS-9273

test plan:

Using each of cassandra 1.1, 1.2, and 2.0:

* Clear out the consistency level Settings
  * Setting.connection.delete("DELETE FROM settings WHERE name LIKE 'event_stream.%_consistency%'")
  * Verify that page views and audit logs can be fetched, verify in the
    rails logs that no consistency level is given in the CQL query
    lines
* Set the consistency level
  * Setting.set('event_stream.read_consistency', 'ONE')
  * Verify that page views and audit logs can be fetched, verify in the
    rails logs that consistency level "ONE" is given in the CQL query
    lines. In 1.1, this will be in the query string, in 1.2 and 2.0 it
    will follow the query in an options hash

Change-Id: I3d007376d096e6ed31a40e699e77dca4cdd065a2
Reviewed-on: https://gerrit.instructure.com/35171
Tested-by: Brian Palmer <brianp@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
2014-05-23 18:53:25 +00:00
Gemfile.d support cassandra 1.2+ consistency level usage 2014-05-23 18:53:25 +00:00
app API tweaks to support querying upcoming enrollments/courses 2014-05-23 18:50:25 +00:00
config add polling session and submission apis 2014-05-22 20:49:40 +00:00
db/migrate Automatically Assign group leaders 2014-05-23 17:23:53 +00:00
doc add sis_course_id to sections api attributes 2014-05-22 23:49:05 +00:00
gems support cassandra 1.2+ consistency level usage 2014-05-23 18:53:25 +00:00
guard output commented/nested css from guard 2014-05-16 15:32:54 +00:00
lib designers and TAs can see same overrides as teachers 2014-05-23 18:22:12 +00:00
loom introduced bower to manage js dependencies 2013-12-13 17:45:57 +00:00
public fix unlocked_at field when editing a module 2014-05-22 19:52:08 +00:00
script extract incoming mail into gem 2014-04-25 23:06:02 +00:00
spec fix cas spec 2014-05-23 18:53:22 +00:00
vendor/plugins use add extra text helper in reports 2014-05-22 20:51:40 +00:00
.bowerrc introduced bower to manage js dependencies 2013-12-13 17:45:57 +00:00
.gitignore don't keep generated locales in git 2014-05-22 14:52:48 +00:00
.jshintrc make jslint settings more sane 2012-08-17 11:04:40 -06:00
.travis.yml more travis builds 2014-02-10 16:23:19 +00:00
CONTRIBUTING.md add a contributing doc for github coolness 2012-09-19 10:16:04 -06:00
COPYRIGHT Initial commit. 2011-01-31 18:57:29 -07:00
Gemfile Move google_docs code into a gem 2014-04-25 21:50:43 +00:00
Guardfile a way for accounts to opt-in to new styles and users to high-contrast 2014-04-17 19:47:05 +00:00
LICENSE Initial commit. 2011-01-31 18:57:29 -07:00
README.md add travis-ci badge to README.md 2014-01-23 17:17:49 +00:00
Rakefile refactor and make gem rake task inclusion explicit 2014-04-24 15:50:31 +00:00
bower.json individual gradebook view: outcomes 2014-05-09 19:31:46 +00:00
config.ru start adding rails 3.0 support 2013-03-22 19:08:40 +00:00
karma.conf.js new avatars upload image function 2014-03-07 18:52:28 +00:00
package.json package.json should include compute-cluster in dependencies 2014-05-05 16:46:43 +00:00

README.md

Canvas LMS

Build
Status

Canvas is a new, open-source LMS 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.