-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 pages model to project #21
Projects
Comments
Merged
RaduCStefanescu
moved this from To do - Public platform
to In progress
in Monitorizare vot - API and Web Admin
Mar 30, 2019
In progress @ Qwerty Pnk |
mirelanemes
pushed a commit
to mirelanemes/monitorizare-vot-votanti-api
that referenced
this issue
Mar 30, 2019
RaduCStefanescu
pushed a commit
that referenced
this issue
Apr 16, 2019
aniri
moved this from In progress
to To do - Public platform
in Monitorizare vot - API and Web Admin
May 28, 2019
RaduCStefanescu
moved this from To do - Public platform
to In progress
in Monitorizare vot - API and Web Admin
Jul 27, 2019
In progress @ Marcel Moldovan |
mimarcel
added a commit
to mimarcel/monitorizare-vot-votanti-api
that referenced
this issue
Jul 27, 2019
mimarcel
added a commit
to mimarcel/monitorizare-vot-votanti-api
that referenced
this issue
Jul 27, 2019
mimarcel
added a commit
to mimarcel/monitorizare-vot-votanti-api
that referenced
this issue
Jul 27, 2019
This reverts commit eb7e087
mimarcel
added a commit
to mimarcel/monitorizare-vot-votanti-api
that referenced
this issue
Jul 27, 2019
mimarcel
added a commit
to mimarcel/monitorizare-vot-votanti-api
that referenced
this issue
Jul 27, 2019
mimarcel
added a commit
to mimarcel/monitorizare-vot-votanti-api
that referenced
this issue
Jul 27, 2019
The pages model has been defined, this issue can be closed. |
RaduCStefanescu
added a commit
that referenced
this issue
Sep 19, 2019
* [21]added pages model * [22] added pages controller * [22] changed validation when update entity * added approve and reject routes * follow up * Feature forms (#25) * - cherry picked * - added forms model, migration #21 * - added forms controller, routes, transformer #20 * Update ReportingController.php * Api docs (#18) * put in place a working swagger&add doc for AuthController * update readme * change the laravel version to be the same like in composer file * Fix issue with PHP7 syntax, currently failing on server running PHP5 * Modify add incidents endpoint to accept an image as part of the request (#29) * put in place a working swagger&add doc for AuthController * update readme * change the laravel version to be the same like in composer file * incidents image upload * Precint crud (#33) * + added precinct CRUD functionality and import + added docker compose for easier install * * small addition to get all precincts api documentation * - removed obsolete constants + added env config for docker * * more cleanup * + added example csv import document * * used SplFileObject instead of framework specific class * applied feedback * added indexes to counties and cities * fixed small bug where the first city by name was used by precinct instead of correct city by county * + added section on docker config and setup * * applied feedback + added schema constraint for city_id and precinct_no to be unique * changed insert and update precinct to take into account this constraint + added import feature for json * fixed a small issue with the phpmyadmin container starting on its own * feature-28 adds changes to database transforming the incident and inc… (#32) * feature-28 adds changes to database transforming the incident and incident type tables from MySam to InnoDB. adds a new column to incident types table, "status" that can be Active or Inactive, setting the default on Active. adds a unique index for code on incident types table. adds a foreign key between incidents and incident types table to prevent incident type to be deleted when there are incidents on that type. adds CRUD endpoints in api_routes for incident types. adds the CRUD methods(store, update, show, destroy) in IncidentTypeController using for update and store a service to validate and hydrate the data. adds a new transformer for Incident Type. * feature-28 changes the nominal definition of the incident types routes to resource. * Create FUNDING.YML * Initial docker setup (#36) * issue 34: update documentation for local install * issue 34: update documentation for local install * issue 34: fix for failing seed at fresh local install * issue 34: expose mysql port for local access from IDE * issue 34: fix migrate:rollback not working from foreign key issues * Issue22 pages (#39) * issue 34: update documentation for local install * issue 34: update documentation for local install * issue 34: fix for failing seed at fresh local install * issue 34: expose mysql port for local access from IDE * issue 34: fix migrate:rollback not working from foreign key issues * issue 22: fix typo in swagger docs * issue 22: remove enum from swagger docs This fixes my swagger documentation even if the field isn't the correct type any more. Doing l5-swagger:generate then opening the docs crashes when opening /api/documentation * issue 22: fix issue where swagger generation field enum breaks my docs Because enum is a JS keyword I can't use it here with this value. I haven't really found anything other that just showing the possible values the field can take. * issue 22: add documentation * Issues/40 count status (#42) * issue 34: update documentation for local install * issue 34: update documentation for local install * issue 34: fix for failing seed at fresh local install * issue 34: expose mysql port for local access from IDE * issue 34: fix migrate:rollback not working from foreign key issues * issue 40: add counts by status Changes endpoint /api/reports by adding an incidentsByStatus field and updating the totalIncidents count to include all incidents. Adds a new endpoint /statistici/sesizari-status which returns only the above fields: totalIncidents and incidentCountsByStatus. * issue 40: ensure backward compatibility and naming convention * issue 40: ensure backward compatibility * Issues/22 pages (#45) * issue 34: update documentation for local install * issue 34: update documentation for local install * issue 34: fix for failing seed at fresh local install * issue 34: expose mysql port for local access from IDE * issue 34: fix migrate:rollback not working from foreign key issues * issue 22: seed pages * issue 22: add postman archives for api testing These might be useful for the ease of testing because the authentication variable is passed automatically.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Linked to https://github.com/code4romania/monitorizare-vot-votanti-admin/issues/16
A new model needs to be added to the project: Pages
The model will contain the information for displaying voting rules and other pages available on the public platform.
Fields:
titlu -> string
autor -> user reference
date -> date field
status -> string
description -> text that is displayed on page website in frontend
*EDIT: after reviewing the requirements for the public platform, the data model should be enhanced with the following fields
logo -> image for the logo of the page, displayed in the frontend
child_pages -> list of ids for child pages
The text was updated successfully, but these errors were encountered: