Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Mark recently added concerts as new again. | Harald Eilertsen | 2021-09-04 | 1 | -4/+14 |
| | |||||
* | Make click to unassign from concert work again. | Harald Eilertsen | 2021-09-04 | 1 | -0/+5 |
| | | | | | | As a user can only be assigned to one role at the time, we remove the current user from any role that they may have when clearing the assignment. | ||||
* | Editing concerts now work again. | Harald Eilertsen | 2021-09-03 | 1 | -16/+39 |
| | |||||
* | Shift value of Concert statuses to be 0-based. | Harald Eilertsen | 2021-09-03 | 1 | -7/+7 |
| | | | | | This will trip up any existing records in the db, but that should not matter, since we're changing how this entire stuff works now. | ||||
* | emove dependency on ConcertLogs in gig import code. | Harald Eilertsen | 2021-09-03 | 1 | -11/+0 |
| | |||||
* | Allow empty concerts to be created. | Harald Eilertsen | 2021-09-03 | 1 | -5/+5 |
| | |||||
* | Fix more type issues in Concert and Venue classes | Harald Eilertsen | 2021-09-02 | 1 | -1/+1 |
| | |||||
* | psalm: Add type info to attrs and constructor for Concert. | Harald Eilertsen | 2021-09-02 | 1 | -8/+18 |
| | | | | Also make sure we explicitly set the venue attribute in the constructor. | ||||
* | Fix saving and fetching roles from Concerts table. | Harald Eilertsen | 2021-09-01 | 1 | -22/+20 |
| | |||||
* | Begin move roles and status field to concerts table. | Harald Eilertsen | 2021-06-27 | 1 | -0/+5 |
| | |||||
* | Remove some debug output. | Harald Eilertsen | 2021-06-27 | 1 | -1/+0 |
| | |||||
* | Begin move roles and status field to concerts table. | Harald Eilertsen | 2021-06-14 | 1 | -11/+57 |
| | | | | There's no need to have a separate table (concertlogs) for these fields. | ||||
* | Fix detecting error in update_concert method. | Harald Eilertsen | 2021-06-13 | 1 | -1/+1 |
| | |||||
* | Move method to update Concertlogs to Concertlogs class. | Harald Eilertsen | 2021-06-13 | 1 | -23/+0 |
| | |||||
* | Streamline Concert api. | Harald Eilertsen | 2021-06-12 | 1 | -15/+22 |
| | | | | | Reduce to one find_concerts function taking a filter to limit the selection. | ||||
* | Fix misc Psalm issues. | Harald Eilertsen | 2021-06-12 | 1 | -0/+2 |
| | |||||
* | Make it possible to list all concerts. | Harald Eilertsen | 2021-05-10 | 1 | -3/+6 |
| | |||||
* | Method to find concerts at given venue | Harald Eilertsen | 2021-05-09 | 1 | -0/+14 |
| | |||||
* | Method to find concerts for a given city. | Harald Eilertsen | 2021-05-09 | 1 | -0/+15 |
| | |||||
* | Fix constructing concerts if only venue id passed. | Harald Eilertsen | 2021-05-09 | 1 | -7/+12 |
| | | | | | | | | | The previous changes required the full venue data to be included in the constructor. This patch ensures that we handle the old case, where only the venue id was passed in. We still should get the full concert object including the venue name and city back. | ||||
* | Include info from venue in concerts. | Harald Eilertsen | 2021-05-09 | 1 | -18/+25 |
| | | | | | | | | | | | | | | | | | | | | This makes the concert a full object containing all relevant info, while we can still segment the data in the db. Instead of this: $concert = GiglogAdmin_Concert::get($concert_id); $venue = GiglogAdmin_Venue::get($concert->venue()); echo "{$concert->name()} @ {$venue->name()} : {$concert->cdate()}" You can now do: $concert = GiglogAdmin_Concert::get($concert_id); echo "{$concert->name()} @ {$concert->venue()->name()} : {$concert->cdate()}" And yeah, renamed Concert::find_cid() to Concert::get() and changed it's semantics somewhat. It now either returns the given concert if it exists, or NULL if it does not. Simpler function; simpler to use. | ||||
* | Autofixes by Psalm | Harald Eilertsen | 2021-05-08 | 1 | -1/+1 |
| | |||||
* | Auto fixup missing return types by Psalm | Harald Eilertsen | 2021-05-08 | 1 | -2/+5 |
| | |||||
* | Added an uppercase in sql for venue and concert duplicate check | AndreaChirulescu | 2021-04-23 | 1 | -1/+1 |
| | | | | Added test to create duplicate concert with varied cases in string | ||||
* | Refactor Concert::create | Harald Eilertsen | 2021-04-23 | 1 | -40/+27 |
| | | | | | | | | | | Restructure the method a bit, drop the `c`prefix on variables, rename the variable to hold the created concert, and use object notation to pass the attributes to the constructor. Also rename the method `get` to `find`, the only call site was the `create` method. Drop the unnecessary method `check_duplicate`. Just use `find` instead. | ||||
* | Concert::create return NULL if concert already exist. | Harald Eilertsen | 2021-04-22 | 1 | -3/+5 |
| | | | | | | We probably need some better error handling here. There's a myriad of reasons why this call could fail, and we might need to communicate the failure reason somewhere. | ||||
* | Fix wrong property name in Concert::cname() | Harald Eilertsen | 2021-04-22 | 1 | -1/+1 |
| | |||||
* | Merge remote-tracking branch 'andrea/andreaschanges' into dev | Harald Eilertsen | 2021-04-22 | 1 | -16/+16 |
|\ | |||||
| * | Added column for concert title in database | AndreaChirulescu | 2021-04-21 | 1 | -16/+16 |
| | | | | | | | | Modified so that band is no longer in use | ||||
* | | Typo in comment for Concert constructor. | Harald Eilertsen | 2021-04-21 | 1 | -2/+2 |
|/ | |||||
* | Added form fields and functionality for admin to edit assigned users | AndreaChirulescu | 2021-04-19 | 1 | -0/+23 |
| | |||||
* | Got rid of find or create for concert and band | AndreaChirulescu | 2021-04-14 | 1 | -37/+44 |
| | | | | Refactored band | ||||
* | Switch to Reuse for license handling. | Harald Eilertsen | 2021-04-14 | 1 | -16/+5 |
| | | | | Run `reuse lint` to verify that all material is licensed. | ||||
* | Make Concert constructor public. | Harald Eilertsen | 2021-04-14 | 1 | -4/+6 |
| | | | | | Also allow it to default initialize when passing no args. Not entirely sure about making this interface public. | ||||
* | Concert file wizardry to split create/createAndFind,Find functions | AndreaChirulescu | 2021-04-13 | 1 | -6/+40 |
| | | | | Adjustments in admin page and import gigs to use the above adjustments | ||||
* | Fixes of LF and extra spaces done by ATOM | AndreaChirulescu | 2021-04-13 | 1 | -157/+157 |
| | |||||
* | Moved a lot of concert related logic from import/admin into the ↵ | AndreaChirulescu | 2021-04-12 | 1 | -79/+157 |
| | | | | GiglogAdmin_Concert | ||||
* | Fixed capital IFs and hopefully formatting issues | AndreaChirulescu | 2021-04-11 | 1 | -79/+79 |
| | |||||
* | Added small forms to add new venue and band | AndreaChirulescu | 2021-04-11 | 1 | -55/+79 |
| | | | | Made form for concert both functional to edit existing concert or add new concert | ||||
* | Add some error reporting to Concert class. | Harald Eilertsen | 2021-04-01 | 1 | -1/+7 |
| | |||||
* | Refactor processing uploads. | Harald Eilertsen | 2021-03-08 | 1 | -0/+49 |
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. |