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/filters #348

Closed
wants to merge 20 commits into from
Closed

feature/filters #348

wants to merge 20 commits into from

Conversation

diogommartins
Copy link
Contributor

@diogommartins diogommartins commented Apr 22, 2023

  • ✨ feat(bigquery): Adds amora.providers.bigquery.dry_run_query
  • ✨ feat(questions): Adds amora.question.Question.answer_columns
  • ✨ feat(questions): Adds amora.questions.parse_name
  • ✨ feat(filters): Adds amora.filters.Filter
  • ✨ feat(filters): Adds amora.filters.DateRangeFilter
  • ✨ feat(filters): Adds amora.filters.AcceptedValuesFilter
  • ✨ feat(dashboards): Adds amora.dashboard.Dashboard.filter
  • ✨ feat(dashboards): Adds amora.dashboard.Dashboard.to_markdown
  • 🐛 fix(examples): Fixes dashboard filters
  • 🐛 fix(models): Fixes missing column specification
  • 🧪 tests(questions): Updates the question how_many_data_points_where_acquired so that data is grouped by source_name

@devsec-app-mundipagg
Copy link

🤖 Gandalf - Continuos AppSec

Gandalf badge

Este repositório está sendo monitorando de forma automática e contínua em busca de achados que possam comprometer à segurança da aplicação.

Para maiores detalhes, acesse aqui à plataforma.

O que é? | Dúvidas e/ou sugestões

@diogommartins diogommartins added help wanted Extra attention is needed python Pull requests that update Python code labels Apr 22, 2023


def test_dashboard_with_value_filter(mock_dashboard_with_value_filter):
filtered_dashboard = mock_dashboard_with_value_filter.filter(source_name="iPhone")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

tl;dr;

@diogommartins diogommartins marked this pull request as ready for review April 24, 2023 19:44
base = question.question_func().cte(question.question_func.__name__)
return select(base).where(base.c[self.field] == value)

question_func.__doc__ = question.question_func.__doc__
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

O problema aqui é "como criar em runtime uma função com __name__ e __doc__ específicos". Não consegui ver como seria possível fazer isso com functools.wraps. Consegue me ajudar?

thulio
thulio previously approved these changes May 5, 2023
@thulio thulio closed this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants