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 eventpost functionality #231

Merged
merged 5 commits into from
Dec 13, 2021
Merged

Add eventpost functionality #231

merged 5 commits into from
Dec 13, 2021

Commits on Dec 12, 2021

  1. Ref #222 - Add search functionality for event posts

    - Add filtering by query, player capacity, spectators capacity, number of players, number of spectators, location name, event date, creation date, duration of the event, sport type, event owner, age, coordinates, skill levels
    
    - Make relative imports absolute
    Kerem Zaman committed Dec 12, 2021
    Configuration menu
    Copy the full SHA
    8cfe65b View commit details
    Browse the repository at this point in the history
  2. Ref #222 - Add unit tests for search functionality

    - Add unittests for event search functionality
    - Configure test database
    - Convert relative imports to absolute imports in serializers.py
    Kerem Zaman committed Dec 12, 2021
    Configuration menu
    Copy the full SHA
    5bb8b57 View commit details
    Browse the repository at this point in the history
  3. Ref #222 - Add test command and wait_for_db feature to dockerfile

    - Add testing command to run tests before starting application
    - Add wait_for_db script for backend service to wait until database is ready
    Kerem Zaman committed Dec 12, 2021
    Configuration menu
    Copy the full SHA
    1643a05 View commit details
    Browse the repository at this point in the history
  4. Ref #222 - Fix critical datetime bug in eventpost model

    test_filter_by_date was failing due to the default value of the date field in EventPost model. By quoting the related part about auto_now_add from django documentation:
    " So even if you set a value for this field when creating the object, it will be ignored."
    
    Since the dates specified for the sample events created for tests were ignored, date_by_filter test was failing. This bug would cause wrong event dates while user creating an event, it is fixed by changing default value to the time of the event creation.
    Kerem Zaman committed Dec 12, 2021
    Configuration menu
    Copy the full SHA
    f987f82 View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2021

  1. Configuration menu
    Copy the full SHA
    c9b752b View commit details
    Browse the repository at this point in the history