Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Add feed model and notifications #63

Open
watchoutfreedom opened this issue Sep 29, 2021 · 4 comments
Open

Add feed model and notifications #63

watchoutfreedom opened this issue Sep 29, 2021 · 4 comments

Comments

@watchoutfreedom
Copy link
Contributor

ButtonFile and Profile have Feeds of notifications that import info from external app (like telegram) and show notifications of the local activity and posts. Those feed can be very simple at the beggining (just ordered by time), and we can customize them with filters in the future.

@watchoutfreedom
Copy link
Contributor Author

It has its own component /Feed in the front repo

@albjeremias
Copy link
Contributor

@watchoutfreedom this is very complicated to understand what is needed.

Is it something like this in swagger:

 /feed/{fromDate}:
    get:
        summary: Get all activity for the current user
        tags:
          - users
        security:
          - tokenAuth: []
        parameters:
          - in: path
            name: fromDate
            schema:
              type: string
            required: true
        responses:
          200:
            description: OK
            content:
              application/json:
                schema:
                  type: array
                  items: 
                     type: object
                     properties:
                      status:
                        type: string
                      created:
                        type: string
                      latitude:
                        type: number
                      longitude:
                        type: number
          401:
            $ref: "#/components/responses/UnauthorizedError"

@albjeremias
Copy link
Contributor

from where do i get statuses? which api end points should i use to add new statuses?

@watchoutfreedom
Copy link
Contributor Author

watchoutfreedom commented Nov 17, 2021

It's similar to that @albjeremias , to make it short I would say :

  • A button can have one feed for now.
  • this feed shows statuses depending on the user that visits the button and also depending on the type of feed defined in the button -feedType: enum, //enum {single,group} feed structure-)

we would need to update the calls with time but for now the parameters for a feed call I think would be :

  • date of status (order in time too)
  • number of shown status
  • type of status : it can be a message (published message on the feed) or data-update (changed location, added images, changed places, changed description, etc)
  • origin of status (published using the app directly or imported from telegram as example)
  • Publisher of the status
  • Role and status of the currentUser (logged/admin/button-owner) (we will hide/ show content depending on the user)

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

No branches or pull requests

2 participants