Giter Club home page Giter Club logo

istudybucket-server's People

Contributors

andrew21-mch avatar brunostar avatar burnleydev1 avatar elroykanye avatar elroyvince avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

istudybucket-server's Issues

Create a pull request template.

Is your feature request related to a problem? Please describe.
No it's not
Describe the solution you'd like
A pull request template

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

[BUG] creating post with "post_id" set to null does not work

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When the post_id is set to null from a client in the POST request for adding a post, the operation fails but returns a 200 response code.

Expected Behavior

The post should be created with a system defined post_id.

Steps To Reproduce

  1. Run the backend application
  2. Open any API client
  3. Login with an existing account
  4. Startup a create post using the POST -> /api/post endpoint.
  5. The post_id should be set to null
  6. The post will not be created

Environment

- OS: Kali Linux
- Java: 17

Anything else?

N/A

[BUG]

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Logging in without an account returns "Paasword Incorrect" and "User not verified"

Expected Behavior

"Paasword Incorrect" and" User not verified" is not necessary and should be returned only when the user is not actually verified and exists.

Steps To Reproduce

  1. Go to your favorite api client

  2. Create a new request

  3. Setup exactly as below
    image

  4. You will get this as response
    image

Environment

- OS:Ubuntu 20.04

Anything else?

N/A

Add an issue template to .github

This is to help the person creating the issue to be much more elaborate on the issue (maybe a feature request or a bug report).

enforce modularity in the backend

Is your feature request related to a problem? Please describe.
The current state of the backend is non-modularised which will create some problems in future when we have to separate concerna and modify components which should not affect functioning of others.

Describe the solution you'd like
Separate the application into various modules which take their own part in the backend.
A step towards solving istudybucket/milestones#1

Describe alternatives you've considered
None

Additional context
None

Add a contributing.md file

Add a contributing.md file to guide those looking to contribute to this project but are new to open source or don't know how to proceed.

post created date showing null

Describe the bug
After a post is created, the created_date property in the json response for getting all posts displays a null

To Reproduce
Steps to reproduce the behavior:

  1. Go to your favorite http client
  2. Authenticate yourself and create a new request
  3. Set the url for a new post from swagger-ui
  4. Send a get request to /api/post

Expected behavior
The created date should show when each post was created.

Screenshots
Screenshot_20220504_012608

Desktop (please complete the following information):

  • OS: Kali Linux
  • Browser: Microsoft Edge
  • Version 99.0.1150.55 (Official build) (64-bit)

Additional context
N/A

Create a post class

create a class called post which handle postings like queries, resources and others stuffs posted.

setup tests on the mapper classes

Configure some tests on the mapper business classes.
This will help us have a strong and safe codebase, forcing us to do refactoring in the most necessary regions.

[Feature Request] post should be created with media items

Is your feature request related to a problem?

  • Yes, it is

Please describe the problem this request is related to. If you didn't mark the checkbox above, please skip this question.

No response

Please describe solution to you'd like to see.

A post is currently just a title, content and comments. It will be nice to have multiple media items attached to a post like images, videos and documents.

Please describe the benefit of your feature.

It improves the user experience to be able to view various media when we finally one UI

Please describe the alternatives you have considered.

N/A

Additional Context

N/A

make comments of posts be commentable

Describe the solution you'd like
The setup for the comments now is that comments can be made on posts at only 1 level. We should support a nested comment feature where comments can be commented on.

Describe alternatives you've considered
N/A

Additional context
N/A

login with wrong password should return "invalid password" only

Describe the bug
When performing a login, the errors property of the response in the case of an invalid password has multiple values with an unnecessary message.

To Reproduce
Steps to reproduce the behavior:

  1. Go to your favorite api client

  2. Create a new request

  3. Setup exactly as below
    Screenshot_20220504_005728

  4. You should have this as a response
    Screenshot_20220504_005700

Expected behavior
"User not verified" is not necessary and should be returned only when the user is not actually verified.

Additional context
N/A

Create a Trophy class

Create a trophy class to handle awards given to users based on their contributions

[Feature Request - DEV] create a default user account for testing

Is your feature request related to a problem?

  • Yes, it is

Please describe the problem this request is related to. If you didn't mark the checkbox above, please skip this question.

Currently, we are unable to do tests with a user account without being registered. The accounts are verified using mailtrap.io and that is not available to everyone using the application.

Please describe solution to you'd like to see.

A user account generated with default values on running the application the first time on any server.

Please describe the benefit of your feature.

It will reduce the work and time taken to carry out development tests

Please describe the alternatives you have considered.

N/A

Additional Context

N/A

Create Media Class

Create a class media to handle things like documents, videos, and others file types

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.