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

Feature Panel - Backend #283

Merged
merged 54 commits into from Feb 25, 2021

Conversation

LiranCaduri
Copy link
Contributor

@LiranCaduri LiranCaduri commented Feb 14, 2021

Feature Panel for Pylender system.

Frontend integration by: @aviadamar in #284.

Bring a decorator to control access to features.

app/features/index.py Outdated Show resolved Hide resolved
app/features/utils.py Outdated Show resolved Hide resolved
app/internal/features.py Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/routers/features.py Outdated Show resolved Hide resolved
app/routers/features.py Outdated Show resolved Hide resolved
app/routers/features.py Outdated Show resolved Hide resolved
tests/client_fixture.py Outdated Show resolved Hide resolved
tests/test_agenda_route.py Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
app/features/index.py Outdated Show resolved Hide resolved
app/routers/features.py Outdated Show resolved Hide resolved
tests/test_feature_panel.py Outdated Show resolved Hide resolved
tests/test_feature_panel.py Outdated Show resolved Hide resolved
tests/test_feature_panel.py Outdated Show resolved Hide resolved
tests/test_feature_panel.py Outdated Show resolved Hide resolved
Copy link
Member

@yammesicka yammesicka left a comment

Choose a reason for hiding this comment

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

Good work! I've added few insights :)

app/routers/features.py Outdated Show resolved Hide resolved
app/routers/features.py Outdated Show resolved Hide resolved
app/routers/features.py Outdated Show resolved Hide resolved
app/routers/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
Copy link
Member

@yammesicka yammesicka left a comment

Choose a reason for hiding this comment

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

I've added few insights.
Try to minimize the amount of queries you run against the database - it's expansive :)

app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
Copy link
Contributor

@IdanPelled IdanPelled left a comment

Choose a reason for hiding this comment

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

Great code, good luck!

app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/internal/features.py Outdated Show resolved Hide resolved
app/routers/google_connect.py Outdated Show resolved Hide resolved
Copy link
Member

@yammesicka yammesicka left a comment

Choose a reason for hiding this comment

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

Yalla, almost done

# route that gived by to the request.
return True

user_ptef = session.query(
Copy link
Member

Choose a reason for hiding this comment

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

What is ptef?

app/internal/features.py Show resolved Hide resolved
@yammesicka yammesicka merged commit 66c9fdf into PythonFreeCourse:develop Feb 25, 2021
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

6 participants