summaryrefslogtreecommitdiffstats
path: root/includes/admin/views/giglog_import_gigs.php
Commit message (Collapse)AuthorAgeFilesLines
* Rename and reorganize more source files.Harald Eilertsen2023-01-201-133/+0
|
* Rename and restructure source files to conform to common namin schemes.Harald Eilertsen2023-01-191-2/+2
| | | | | | | | | - Source files containing a class should only contain _one_ class. - Source files containing a class should be names class-[name of the class].php - Use dashes instead of underscores in file names. - Fix source file comments - Some nitpicking...
* Add phpcs config and do automatic fixups.Harald Eilertsen2022-06-181-51/+45
|
* Refactor gig import code.Harald Eilertsen2022-03-101-63/+64
| | | | | | | | | Split into two functions, and drop the nesting of the ifs. Technically the ifs didn't need to be nested in the first place, since each error case would break the execution flow using `continue` anyways. Throw parsing errors instead of having to keep pass all the state into the function that only need to parse one line.
* Security: Escape imported dates before outputing in error messages.Harald Eilertsen2022-03-101-3/+2
|
* Fix more psalm issuesHarald Eilertsen2022-03-091-1/+1
|
* Merge remote-tracking branch 'andrea/andreaschanges' into devHarald Eilertsen2022-03-091-14/+65
|\ | | | | | | And fixup most whitespace issues while at it.
| * import giglog checks for empty values and ivnalid dateAndreaChirulescu2022-03-011-32/+53
| |
| * iCal file download fixes to generate one file per concertAndreaChirulescu2022-02-271-30/+72
| | | | | | | | giglog import fixes to catch errors and ignore old concerts
* | Fix various psalm errors.Harald Eilertsen2022-03-091-1/+1
|/
* Return better error for failed CSRF check on import.Harald Eilertsen2021-09-171-2/+2
|
* security: Add proper CSRF checking for the import_gigs form.Harald Eilertsen2021-09-051-3/+7
|
* emove dependency on ConcertLogs in gig import code.Harald Eilertsen2021-09-031-2/+0
|
* Fix misc Psalm issues.Harald Eilertsen2021-06-121-1/+1
|
* Fix importing gigs after changes to the concert class.Harald Eilertsen2021-05-091-20/+10
|
* Autofixes by PsalmHarald Eilertsen2021-05-081-1/+3
|
* Auto fixup missing return types by PsalmHarald Eilertsen2021-05-081-3/+5
|
* Added column for concert title in databaseAndreaChirulescu2021-04-211-6/+6
| | | | Modified so that band is no longer in use
* Make Band::create return band object, not just id.Harald Eilertsen2021-04-151-3/+3
|
* Got rid of find or create for concert and bandAndreaChirulescu2021-04-141-2/+2
| | | | Refactored band
* Switch to Reuse for license handling.Harald Eilertsen2021-04-141-16/+5
| | | | Run `reuse lint` to verify that all material is licensed.
* Concert file wizardry to split create/createAndFind,Find functionsAndreaChirulescu2021-04-131-31/+1
| | | | Adjustments in admin page and import gigs to use the above adjustments
* Fixes of LF and extra spaces done by ATOMAndreaChirulescu2021-04-131-5/+5
|
* Moved a lot of concert related logic from import/admin into the ↵AndreaChirulescu2021-04-121-6/+18
| | | | GiglogAdmin_Concert
* Fixed calls to cretae band/venue functions in import gigs codeAndreaChirulescu2021-04-121-2/+2
|
* Change venues into proper objects.Harald Eilertsen2021-04-101-1/+2
| | | | | | | | | This means most static functions now either return a venue object, or an array of venue objects. The exception is the `all_cities` method, which still return an array of cities as strings. The constructor has been made private, as it should not be used directly from anywhere but the static methods on the Venue class.
* Fix gig import logic.Harald Eilertsen2021-04-011-16/+22
| | | | | Add entry to concertlogs table, and fix some error reporting and misc input cleaning.
* Refactor processing uploads.Harald Eilertsen2021-03-081-58/+41
| | | | | | | | | | Moves all database operations to separate classes for each type of object, bands, venues and concerts. This makes the logic cleaner, and concentrates the db related code to logically distinct parts of the code. This means we no longer need the global access to the $wpdb object from the processing code.
* Import gigs directly from uploaded file.Harald Eilertsen2021-03-071-11/+77
| | | | | | | | | | The original snippet based design expected an unknown number of files with gig data to be available at some specific location, and an admin could "process" these at will. When transforming to a plugin based design, we don't really need this two stage import anymore, so just process the imported data right away. This also makes the `wpg_files` table obsolete.
* Implement upload of gig data files.Harald Eilertsen2021-03-071-1/+41
|
* Add a sub page for importing gigs in admin.Harald Eilertsen2021-02-231-0/+25
Just an emtpy placeholder for now.