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

Firebreak/data hub test data contacts #5348

Closed
wants to merge 23 commits into from

Conversation

bau123
Copy link
Contributor

@bau123 bau123 commented Apr 9, 2024

Add generator for contacts

Checklist

  • Has this branch been rebased on top of the current main branch?

    Explanation

    The branch should not be stale or have conflicts at the time reviews are requested.

  • Is the CircleCI build passing?

General points

Other things to check

  • Make sure fixtures/test_data.yaml is maintained when updating models
  • Consider the admin site when making changes to models
  • Use select-/prefetch-related field lists in views and search apps, and update them when fields are added
  • Make sure the README is updated e.g. when adding new environment variables

See docs/CONTRIBUTING.md for more guidelines.

@bau123 bau123 requested a review from a team as a code owner April 9, 2024 12:37
Copy link
Contributor

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

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

Some food for thought. View full project report here.

redis = Redis.from_url(settings.REDIS_BASE_URL)
workers = Worker.all(connection=redis)
queue_names = reduce(concat, [worker.queue_names() for worker in workers], [])
missing_queues = set([queue]) - set(queue_names)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
missing_queues = set([queue]) - set(queue_names)
missing_queues = {queue} - set(queue_names)

Using set literal syntax is simpler and computationally quicker. More info.

@bau123 bau123 force-pushed the firebreak/data-hub-test-data-contacts branch from 5faaa7d to 8794031 Compare April 9, 2024 12:41
Copy link
Contributor

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

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

Some things to consider. View full project report here.

redis = Redis.from_url(settings.REDIS_BASE_URL)
workers = Worker.all(connection=redis)
queue_names = reduce(concat, [worker.queue_names() for worker in workers], [])
missing_queues = set([queue]) - set(queue_names)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
missing_queues = set([queue]) - set(queue_names)
missing_queues = {queue} - set(queue_names)

Using set literal syntax is simpler and computationally quicker. More info.

@bau123 bau123 force-pushed the firebreak/data-hub-test-data-contacts branch from 8794031 to c3fff3d Compare April 9, 2024 12:44
@bau123 bau123 force-pushed the firebreak/data-hub-test-data-contacts branch from c3fff3d to 1c3c20a Compare April 9, 2024 12:45
@bau123 bau123 closed this Apr 9, 2024
@bau123 bau123 deleted the firebreak/data-hub-test-data-contacts branch April 9, 2024 12:49
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.

4 participants