Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic getTest / addResult Cassandra backend implementation #16

Open
gwicke opened this issue Feb 28, 2014 · 0 comments
Open

Basic getTest / addResult Cassandra backend implementation #16

gwicke opened this issue Feb 28, 2014 · 0 comments
Assignees
Labels

Comments

@gwicke
Copy link
Owner

gwicke commented Feb 28, 2014

Progress so far: #13
Calling the CassandraBackend constructor will

  1. Retrieve all test identifiers (prefix and title) from Cassandra
  2. Retrieve latest test scores corresponding to retrieved test prefixes and titles
  3. Order retrieved tests by placing them in a priority queue

Will be done soon (Sebastian and Krishnan):
- Dummy data  + verification that the logic so far works (Somewhat done)
- Queue retry/fail logic

Dummy data progress: https://gist.github.com/swong15/9061167
  we can also check this in, maybe in a cql/testdata subdir -- Gabriel
Scores are randomly generated. Commit hash is arbitrary for now. Should suffice to test current logic. There are more sane ways to do this rather than calling a large number of inserts. This is just a quick and dirty way of verifying correctness for now.

Data (including non-english characters) seems to load fine from server after inserts are done from cqlsh.

cqlsh doesn’t take non-english input well.
Queries break on text like:
insert into tests (prefix, title) values ('itwiki', 'Museo_di_fisica_dell'Università_di_Napoli_Federico_II');
This looks more like a quoting issue to me. You need to escape the embedded ‘ with another quote: insert into tests (prefix, title) values ('itwiki', 'Museo_di_fisica_dell’'Università_di_Napoli_Federico_II');

Who: Krishnan, Collin, Junjun, Pranav, Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants