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

Sample Data for posts, posts_votes, and posts_attachments #3193

Open
prayanshchh opened this issue Feb 10, 2025 · 10 comments
Open

Sample Data for posts, posts_votes, and posts_attachments #3193

prayanshchh opened this issue Feb 10, 2025 · 10 comments
Assignees

Comments

@prayanshchh
Copy link
Contributor

prayanshchh commented Feb 10, 2025

Is your feature request related to a problem? Please describe.
We need sample data for the following tables:
posts
post_votes
post_attachments
comments
comments_votes

This data will be used for testing and development purposes. The sample data should be representative of real-world usage and cover different edge cases.

Describe the solution you'd like
Create sample data by taking the sample data in develop as reference, we have divided posts logic in three tables, posts, post_votes, post_attachments and comments logic in comments and comment_votes

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Approach to be followed (optional)
A clear and concise description of approach to be followed.

Additional context
Add any other context or screenshots about the feature request here.

Potential internship candidates

Please read this if you are planning to apply for a Palisadoes Foundation internship

@github-actions github-actions bot added the unapproved Unapproved for Pull Request label Feb 10, 2025
@prayanshchh prayanshchh changed the title Sample Data for Posts, Post Votes, and Post Attachments Sample Data for posts, posts_votes, and posts_attachments ` Feb 10, 2025
@prayanshchh prayanshchh changed the title Sample Data for posts, posts_votes, and posts_attachments ` Sample Data for posts, posts_votes, and posts_attachments Feb 10, 2025
@prayanshchh
Copy link
Contributor Author

assign

@prayanshchh
Copy link
Contributor Author

how many posts we need per organisation?

@gurramkarthiknetha
Copy link

i want to work on this issue

@palisadoes palisadoes removed the unapproved Unapproved for Pull Request label Feb 10, 2025
@palisadoes
Copy link
Contributor

how many posts we need per organisation?

The same number and type as we had in the develop branch

@prayanshchh
Copy link
Contributor Author

alright, develop had no specific sequence some organizations had 18, some 11, some 0...I will replicate the same random behaviour then

@Deep-1507
Copy link

kindly assign me this issue!

@prayanshchh
Copy link
Contributor Author

prayanshchh commented Feb 11, 2025

@palisadoes if we need sample data for posts_attachments, then we will need to also have to keep the images or videos in minio bucket, shall I implement this?

@palisadoes
Copy link
Contributor

palisadoes commented Feb 12, 2025

  1. You'll need to implement this.
  2. Can they be loaded from the sample-data directory? It would be simpler and more reproducible.

@prayanshchh
Copy link
Contributor Author

alright, my current plan was to keep the images in sample-data, and when import command is run, the images can be uploaded to minio and the unique names of attachments can be filled in db

@palisadoes
Copy link
Contributor

Thanks. Create a sub folder for them there. It'll be more maintainable later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants