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

[WIP] View access #130

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

[WIP] View access #130

wants to merge 6 commits into from

Conversation

cameron-toy
Copy link
Collaborator

@cameron-toy cameron-toy commented Apr 8, 2020

What's New?

Added access to the Professor_Teaches_Section_View_2

See: Issue #129

Type of change (pick-one)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

running _get_property_from_entity() on the Professors table and Professor_Teaches_Section_2 view.

Checklist (check-all-before-merge)

formatting help: - [x] means "checked' and - [ ] means "unchecked"

  • I documented my code according to the Google Python Style Guide

  • I ran ./build_docs.sh and the docs look fine

  • I ran ./type_check.sh and got no errors

  • I ran ./format.sh because it automatically cleans my code for me 😄

  • I ran ./lint.sh to check for what "format" missed

  • I added my tests to the /tests directory

  • I ran ./run_tests.sh and all the tests pass



class ProfessorSectionView(Base):
__tablename__ = "Professor_Teaches_Section_2"
Copy link
Member

Choose a reason for hiding this comment

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

I believe Professor_Teaches_Section_2 was a by product of me exploring the CREATE VIEW syntax in SQL.

Let's consider Professor_Teaches_Section to be the official __tablename__

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed and tested

Changed from "Professor_Teaches_Section_2" to "Professor_Teaches_Section"
@zpdeng zpdeng self-requested a review April 25, 2020 05:42
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.

3 participants