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

Backend Data Preparation #407

Merged
merged 2 commits into from
Dec 16, 2024
Merged

Backend Data Preparation #407

merged 2 commits into from
Dec 16, 2024

Conversation

sonerkuyar
Copy link
Member

New Functionalities

Custom Data Insertion

  • Added functionality to insert data into the Post model via the Django shell.
  • Supports:
    • Manual creation using the model's save() method.
    • Bulk creation through bulk_create() for multiple posts.
    • Inclusion of the created_at field during manual data insertion.

JSON-based Data Insertion

  • Enabled importing posts from a JSON file using the Django shell.
  • Handles:
    • User lookup based on usernames.
    • Conversion of tags from a list to a comma-separated string.
    • Support for custom created_at timestamps during data creation.

Testing

  • Verified data insertion via JSON files using the Django shell.
  • Tested manual and bulk data creation workflows.
  • Confirmed created_at timestamps can be manually set or default to the current time.
  • Ensured API responses include the correct list format for tags.

Wrote a script and inserted posts into the database
Took a snapshat of database and put into init scripts.
@sonerkuyar sonerkuyar added Component: Backend Issues related to server-side logic or infrastructure Component: Database Issues related to database management or queries labels Dec 16, 2024
@sonerkuyar sonerkuyar added this to the Milestone 3 - (Final) milestone Dec 16, 2024
@sonerkuyar sonerkuyar self-assigned this Dec 16, 2024
@yusufaygun
Copy link
Contributor

Everything looks good to me. Clear implementation and well-tested functionality. Merging.

@yusufaygun yusufaygun merged commit 265dae0 into backend Dec 16, 2024
@sonerkuyar sonerkuyar linked an issue Dec 16, 2024 that may be closed by this pull request
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Backend Issues related to server-side logic or infrastructure Component: Database Issues related to database management or queries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Database: Add deployment dataset into final product
2 participants