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

Add new endpoint API ComposeTree #217

Closed
wants to merge 0 commits into from
Closed

Add new endpoint API ComposeTree #217

wants to merge 0 commits into from

Conversation

simozhan
Copy link
Contributor

JIRA: PDC-1100

@xychu
Copy link
Contributor

xychu commented Nov 18, 2015

LGTM

-d _data_ (a json string). or GUI plugins for
browsers, such as ``RESTClient``, ``RESTConsole``.
"""
queryset = ComposeTree.objects.all()
Copy link
Contributor

Choose a reason for hiding this comment

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

If some other related objects also need to be accessed, maybe could use select_related() to fetch them with on DB hit.

@ycheng-aa
Copy link
Contributor

Generally looks good to me.

class ComposeTree(models.Model):
compose = models.ForeignKey("Compose")
variant = models.ForeignKey("Variant")
arch = models.CharField(max_length=50)

Choose a reason for hiding this comment

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

I think these should be one of currently defined arches and not just any string.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. fixed.

@lubomir
Copy link
Member

lubomir commented Nov 20, 2015

Looks fine to me.

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.

None yet

5 participants