Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add CSRF checks to new venue form | Harald Eilertsen | 2021-09-17 | 2 | -0/+8 |
| | |||||
* | Move New Venue form to a separate partial. | Harald Eilertsen | 2021-09-17 | 3 | -9/+45 |
| | |||||
* | Return better error for failed CSRF check on import. | Harald Eilertsen | 2021-09-17 | 1 | -2/+2 |
| | |||||
* | Add CSRF checks for edit concert form. | Harald Eilertsen | 2021-09-17 | 2 | -1/+9 |
| | |||||
* | Clean up, fix and rename db tables. | Harald Eilertsen | 2021-09-16 | 5 | -95/+72 |
| | | | | | | | | | | | | | | | | | This patch got a bit more involved than what was originally planned, but since we're messing with the tables I decided to do it all right away. - Moves the constraint definition to the CREATE TABLE statement for the concerts table. This replaces the existing KEY definition that it had. - Make sure the venues table is created before the concerts table so that the above mentioned constraint definition works. - Rename the tables. Use the wpdb-prefix and make the name a bit prettier. This caused some changes in the Concert and Venue classes, and for slightly silly reasons some test classes. The code actually turned out better (for the most part), but some refactoring can still be done. The column names remains unchanged for now. | ||||
* | Fix ConcertTest::testFetchConcertByVenueAndDate. | Harald Eilertsen | 2021-09-16 | 1 | -1/+1 |
| | | | | | | | | Since the date column has changed types, so has the representation in the concert class. We should really change the property in the Concert class be a proper DateTime object. | ||||
* | Reinsert created and updated columns for venues. | Harald Eilertsen | 2021-09-16 | 1 | -0/+2 |
| | | | | Was accidentally dropped during rewrite of base schema. | ||||
* | Facelift of database table creation to use create tables instead of ↵ | AndreaChirulescu | 2021-09-13 | 1 | -323/+17 |
| | | | | versioning. First attempt | ||||
* | Update ConcertsTable tests. | Harald Eilertsen | 2021-09-11 | 1 | -3/+65 |
| | | | | | Test that less privileged users don't see all the controls, and that no controls are rendered on the public facing pages. | ||||
* | Change how we load the plugin. | Harald Eilertsen | 2021-09-11 | 3 | -23/+28 |
| | | | | | | | | | | | | | | Since we now have code that should be available, both on the public blog and in the admin section, we need to be more graular when loading the various parts of the plugin. We still try to avoid loading admin-only parts for the public blog, but allways load the parts that we need in either case. Also avoid running the db migrations when running unit tests, as the schema is copied over from the dev environment it just caues problems. Finally, don't hardcode unit tests to always be in_admin, but rather determine that for each test. | ||||
* | tests: Make an actual test for ConcertsTable | Harald Eilertsen | 2021-09-11 | 2 | -8/+27 |
| | | | | | | | | | | | There's a bit of setup to make this work as it should, we need to ensure that the current user and current screen is set to proper values so that the WordPress api's `is_admin()` and `current_user_can()` work as they should. This first test just tests that all the expected forms are being rendered for the admin user accessing the table through the site admin interface. | ||||
* | Fix indentation again. | Harald Eilertsen | 2021-09-09 | 1 | -8/+10 |
| | |||||
* | changes reagding mail sending on concert status changes | AndreaChirulescu | 2021-09-07 | 1 | -14/+13 |
| | |||||
* | Fixed wording in mails sent when concerts are assigned/unassinged | AndreaChirulescu | 2021-09-06 | 1 | -4/+29 |
| | | | | Added mailing for when concert status changes. Not sure how to get line break in text mails AND concert status as text | ||||
* | Fix show only own concerts again. | Harald Eilertsen | 2021-09-06 | 1 | -1/+1 |
| | | | | Missed quitation marks around search term. | ||||
* | Merge remote-tracking branch 'andrea/andreaschanges' into dev | Harald Eilertsen | 2021-09-06 | 1 | -2/+2 |
|\ | |||||
| * | fixed proper class naming for Apply button | AndreaChirulescu | 2021-09-06 | 1 | -1/+1 |
| | | |||||
| * | removed some extra characters that got lost in table HTML | AndreaChirulescu | 2021-09-06 | 1 | -1/+1 |
| | | |||||
* | | Refactor Concert::find_concerts. | Harald Eilertsen | 2021-09-06 | 1 | -23/+28 |
|/ | | | | | Make it a bit more compact and fix use of $wpdb->prepare for `currentuser` filter. | ||||
* | Remove logging from Venue class. | Harald Eilertsen | 2021-09-06 | 1 | -8/+0 |
| | | | | Move logging to presentation/logic layer if necessary. | ||||
* | Throw instead of log error from Concert class. | Harald Eilertsen | 2021-09-06 | 2 | -18/+13 |
| | | | | | Should get rid of most of the annoying output during testing, and allow moving error handling and logging to the presentation layer. | ||||
* | Use find_concerts to check for duplicates on create. | Harald Eilertsen | 2021-09-06 | 2 | -5/+40 |
| | | | | This also adds a number of new filters to find_concerts. | ||||
* | Remove obsolete function Concert::find | Harald Eilertsen | 2021-09-06 | 1 | -13/+0 |
| | |||||
* | Use wpdb::get_row in Concert::get() | Harald Eilertsen | 2021-09-06 | 1 | -4/+4 |
| | | | | | Makes it clearer that we're just fetching _one_ row from the database. Also updated doc comment to hopefully be a bit clearer. | ||||
* | Remove unneccesary code to sort single concert by date. | Harald Eilertsen | 2021-09-06 | 1 | -1/+0 |
| | |||||
* | Fix indentation and whitespace, add braces where missing. | Harald Eilertsen | 2021-09-06 | 1 | -41/+46 |
| | |||||
* | Merge remote-tracking branch 'andrea/andreaschanges' into dev | Harald Eilertsen | 2021-09-05 | 5 | -4/+13 |
|\ | |||||
| * | added images for checkbox and redicon | AndreaChirulescu | 2021-09-05 | 5 | -4/+13 |
| | | | | | | | | added class for City dropdown form | ||||
* | | security: Add proper CSRF checking for the import_gigs form. | Harald Eilertsen | 2021-09-05 | 1 | -3/+7 |
|/ | |||||
* | used auto ident this time | AndreaChirulescu | 2021-09-05 | 1 | -165/+165 |
| | |||||
* | used is_admin() to check if user shoudl see xtra columns | AndreaChirulescu | 2021-09-05 | 1 | -184/+184 |
| | | | | Re-idented the file | ||||
* | File to display concerts inside a page by calling getconcerts code | AndreaChirulescu | 2021-09-05 | 1 | -0/+14 |
| | |||||
* | Extra changes to hide admincolumns on giglog page If logged in but not using ↵ | AndreaChirulescu | 2021-09-05 | 1 | -6/+8 |
| | | | | plugin | ||||
* | CHanges in the concerts table for logged/non logged user. Fixed row header ↵ | AndreaChirulescu | 2021-09-05 | 2 | -19/+31 |
| | | | | with city | ||||
* | Merge branch 'dev' of ↵ | AndreaChirulescu | 2021-09-05 | 2 | -4/+98 |
|\ | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges | ||||
| * | Add test for ConcertsTable | Harald Eilertsen | 2021-09-05 | 1 | -0/+94 |
| | | |||||
| * | Fix some bugs in generated HTML for ConcertsTable. | Harald Eilertsen | 2021-09-05 | 1 | -5/+5 |
| | | |||||
* | | no idea why it keeps showing a n extra > but commiting to avoid a headache. ↵ | AndreaChirulescu | 2021-09-05 | 1 | -1/+1 |
|/ | | | | This commit is useless | ||||
* | Merge remote-tracking branch 'andrea/andreaschanges' into dev | Harald Eilertsen | 2021-09-05 | 7 | -18/+50 |
|\ | |||||
| * | Re-added the changes for looks, and city/venue selector | AndreaChirulescu | 2021-09-05 | 2 | -14/+14 |
| | | |||||
| * | Merge branch 'dev' of ↵ | AndreaChirulescu | 2021-09-05 | 4 | -252/+292 |
| |\ | | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges # Conflicts: # includes/admin/views/giglog_admin_page.php | ||||
| * | | Ordered venues by name in drop down | AndreaChirulescu | 2021-09-05 | 1 | -1/+2 |
| | | | |||||
| * | | Fixed filter by your concerts | AndreaChirulescu | 2021-09-05 | 3 | -11/+34 |
| | | | | | | | | | | | | Added CSS and extra fromatting to table | ||||
| * | | Fixed a call to city() method in concert.php It needed ->venue->city | AndreaChirulescu | 2021-09-04 | 2 | -1/+3 |
| | | | | | | | | | | | | Added order by concert date in concert list | ||||
| * | | Merge branch 'dev' of ↵ | AndreaChirulescu | 2021-09-04 | 1 | -5/+8 |
| |\ \ | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges | ||||
| * \ \ | Merge branch 'dev' of ↵ | AndreaChirulescu | 2021-09-04 | 1 | -10/+11 |
| |\ \ \ | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges | ||||
| * \ \ \ | Merge branch 'dev' of ↵ | AndreaChirulescu | 2021-09-04 | 17 | -1472/+373 |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges | ||||
| * | | | | | not sure why this change is here, can be ignore | AndreaChirulescu | 2021-09-04 | 1 | -3/+3 |
| | | | | | | |||||
| * | | | | | Merge branch 'dev' of ↵ | AndreaChirulescu | 2021-06-15 | 10 | -193/+453 |
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges | ||||
| * \ \ \ \ \ | Merge branch 'dev' of ↵ | AndreaChirulescu | 2021-05-09 | 2 | -0/+110 |
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges |