summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Change how we load the plugin.Harald Eilertsen2021-09-113-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 ConcertsTableHarald Eilertsen2021-09-112-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 Eilertsen2021-09-091-8/+10
|
* changes reagding mail sending on concert status changesAndreaChirulescu2021-09-071-14/+13
|
* Fixed wording in mails sent when concerts are assigned/unassingedAndreaChirulescu2021-09-061-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 Eilertsen2021-09-061-1/+1
| | | | Missed quitation marks around search term.
* Merge remote-tracking branch 'andrea/andreaschanges' into devHarald Eilertsen2021-09-061-2/+2
|\
| * fixed proper class naming for Apply buttonAndreaChirulescu2021-09-061-1/+1
| |
| * removed some extra characters that got lost in table HTMLAndreaChirulescu2021-09-061-1/+1
| |
* | Refactor Concert::find_concerts.Harald Eilertsen2021-09-061-23/+28
|/ | | | | Make it a bit more compact and fix use of $wpdb->prepare for `currentuser` filter.
* Remove logging from Venue class.Harald Eilertsen2021-09-061-8/+0
| | | | Move logging to presentation/logic layer if necessary.
* Throw instead of log error from Concert class.Harald Eilertsen2021-09-062-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 Eilertsen2021-09-062-5/+40
| | | | This also adds a number of new filters to find_concerts.
* Remove obsolete function Concert::findHarald Eilertsen2021-09-061-13/+0
|
* Use wpdb::get_row in Concert::get()Harald Eilertsen2021-09-061-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 Eilertsen2021-09-061-1/+0
|
* Fix indentation and whitespace, add braces where missing.Harald Eilertsen2021-09-061-41/+46
|
* Merge remote-tracking branch 'andrea/andreaschanges' into devHarald Eilertsen2021-09-055-4/+13
|\
| * added images for checkbox and rediconAndreaChirulescu2021-09-055-4/+13
| | | | | | | | added class for City dropdown form
* | security: Add proper CSRF checking for the import_gigs form.Harald Eilertsen2021-09-051-3/+7
|/
* used auto ident this timeAndreaChirulescu2021-09-051-165/+165
|
* used is_admin() to check if user shoudl see xtra columnsAndreaChirulescu2021-09-051-184/+184
| | | | Re-idented the file
* File to display concerts inside a page by calling getconcerts codeAndreaChirulescu2021-09-051-0/+14
|
* Extra changes to hide admincolumns on giglog page If logged in but not using ↵AndreaChirulescu2021-09-051-6/+8
| | | | plugin
* CHanges in the concerts table for logged/non logged user. Fixed row header ↵AndreaChirulescu2021-09-052-19/+31
| | | | with city
* Merge branch 'dev' of ↵AndreaChirulescu2021-09-052-4/+98
|\ | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * Add test for ConcertsTableHarald Eilertsen2021-09-051-0/+94
| |
| * Fix some bugs in generated HTML for ConcertsTable.Harald Eilertsen2021-09-051-5/+5
| |
* | no idea why it keeps showing a n extra > but commiting to avoid a headache. ↵AndreaChirulescu2021-09-051-1/+1
|/ | | | This commit is useless
* Merge remote-tracking branch 'andrea/andreaschanges' into devHarald Eilertsen2021-09-057-18/+50
|\
| * Re-added the changes for looks, and city/venue selectorAndreaChirulescu2021-09-052-14/+14
| |
| * Merge branch 'dev' of ↵AndreaChirulescu2021-09-054-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 downAndreaChirulescu2021-09-051-1/+2
| | |
| * | Fixed filter by your concertsAndreaChirulescu2021-09-053-11/+34
| | | | | | | | | | | | Added CSS and extra fromatting to table
| * | Fixed a call to city() method in concert.php It needed ->venue->cityAndreaChirulescu2021-09-042-1/+3
| | | | | | | | | | | | Added order by concert date in concert list
| * | Merge branch 'dev' of ↵AndreaChirulescu2021-09-041-5/+8
| |\ \ | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * \ \ Merge branch 'dev' of ↵AndreaChirulescu2021-09-041-10/+11
| |\ \ \ | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * \ \ \ Merge branch 'dev' of ↵AndreaChirulescu2021-09-0417-1472/+373
| |\ \ \ \ | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * | | | | not sure why this change is here, can be ignoreAndreaChirulescu2021-09-041-3/+3
| | | | | |
| * | | | | Merge branch 'dev' of ↵AndreaChirulescu2021-06-1510-193/+453
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * \ \ \ \ \ Merge branch 'dev' of ↵AndreaChirulescu2021-05-092-0/+110
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | https://code.volse.net/wordpress/plugins/gigologadmin.git into andreaschanges
| * | | | | | | Recommitted, with removed head<<<<<< and >>>>AndreaChirulescu2021-05-093-67/+9
| | | | | | | |
| * | | | | | | Tried to fix the psalm local changes done when I manually installed itAndreaChirulescu2021-05-0920-107/+455
| |\ \ \ \ \ \ \
| * | | | | | | | After installing psalm, I got these files modified with, what seems to be, ↵AndreaChirulescu2021-05-094-5/+2003
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | local hashkeys?
* | | | | | | | | ConcertsTable: fix getting city row when changing cities.Harald Eilertsen2021-09-051-1/+1
| | | | | | | | |
* | | | | | | | | test: concertlogs table is gone, no need to clear itHarald Eilertsen2021-09-051-1/+0
| | | | | | | | |
* | | | | | | | | Don't error if obsolete indexes or keys are already deleted.Harald Eilertsen2021-09-051-2/+2
| | | | | | | | |
* | | | | | | | | Fix tests.Harald Eilertsen2021-09-051-0/+1
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the plugin only should load on the admin side, set the WP_ADMIN constant before loading it in the tests.
* | | | | | | | Drop extra query for venue_id in concert queries.Harald Eilertsen2021-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's not required since the id is in the concerts table too. That's what links them together.
* | | | | | | | Move the concerts table and edit form out of AdminPage.Harald Eilertsen2021-09-043-248/+291
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the AdminPage is still responsible for updating changes to any of the concerts, but I'd like to get that into their respective classes too. That way the AdminPage will just be a simple class to handle the layout of the page, while all the specific functionality is in their own classes. This is also the first step to be able to reuse the concerts table on the public end of the site.