Skip to content

Release/0.3.0#75

Open
Unix-Code wants to merge 23 commits intomasterfrom
release/0.3.0
Open

Release/0.3.0#75
Unix-Code wants to merge 23 commits intomasterfrom
release/0.3.0

Conversation

@Unix-Code
Copy link
Collaborator

No description provided.

Unix-Code and others added 23 commits May 2, 2019 01:53
Signed-off-by: Unix-Code <dmalakh@comcast.net>
Signed-off-by: Unix-Code <dmalakh@comcast.net>
Signed-off-by: Unix-Code <dmalakh@comcast.net>
…ctors-and-departments

Restoring changes made in this branch
* fixed project layout

* flask-sqlalchemy -> sqlalchemy

* removed comment

* fixed model init + report service cleanup
* fixed pipeline code to not be totally screwed up

* added pipeline requirements file
* moved elasticsearch out of create_app + all controllers now use responsify instead of jsonify (easier to change later)

* responsify dynamically wraps arrays in {data: ...} but not objects
* add app environment to serverless config

* changelog
…ttps://github.com/chilipot/TRACE-API into feature/add-question-categories

# Conflicts:
#	api/controller/report_controller.py

+ added faceting by category id for questions text endpoint
Add Gitter Badge
* fixed missing scoredata-report rel to be not found case + moved logic for scoredata as_dict to result of report service func + added categories for term logic

* Added category-answers relationship & logic

* disable lookup_answer collapse in response

* add individual response + save individual response endpoint
@Unix-Code Unix-Code requested a review from danguddemi September 4, 2019 20:43

@staticmethod
def _dict_or_collapsed(obj):
def _dict_or_collapsed(obj, models_hit=[]):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mutable default arguments are bad.
This works better. You could also use an if conditional
def _dict_or_collapsed(obj, models_hit=None): models_hit = models_hit or []


course = relationship('Course', back_populates='score_data', uselist=False)
questions = relationship('Question', back_populates='score_data')

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are you serializing objects now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants