Permalink
Commits on Sep 25, 2016
  1. Check for 401 on auth failure in Frisby tests

    The API now returns a 401 status on authentication failure, so we need
    to check for this.
    akrabat committed Sep 25, 2016
  2. Merge branch 'liam-wiltshire-kennyray-JOINDIN-685_Add_link_to_reporte…

    …d_comments_page'
    
    Closes #343
    akrabat committed Sep 25, 2016
  3. Tidy up indentation

    akrabat committed Sep 25, 2016
  4. Remove multi-line ternary

    akrabat committed Sep 25, 2016
Commits on Sep 5, 2016
  1. Update docblocks

    akrabat committed Sep 5, 2016
Commits on Jul 18, 2016
  1. Merge branch 'AndrewCarterUK-security-fix'

    Closes #336
    akrabat committed Jul 18, 2016
  2. Use ^4.2.4 for Guzzle constraint

    akrabat committed Jul 18, 2016
Commits on May 30, 2016
  1. Add SQL for the API write tests

    This can then be used by the vagrant provisioning scripts to seed the
    development environment.
    akrabat committed May 30, 2016
Commits on Mar 27, 2016
  1. Remove track from a talk

    Remove a track from a talk by DELETEing to /talks/123/tracks/456.
    Publish the URI to send the DELETE to as `remove_track_uri` in the
    tracks array on the talk representation, so that it can be discovered.
    akrabat committed Mar 27, 2016
  2. Assign track to a talk

    Add a track to a talk by POSTing to /talks/123/tracks with the
    `track_uri` in the body. Publish the `tracks_uri` URI in the talk model
    representation.
    akrabat committed Mar 27, 2016
Commits on Mar 26, 2016
  1. Refactor retrieval of talk data from request

    The talk data in the request body needs to be validated the same way for
    both createTalk() and editTalk(), so refactor to getTalkDataFromRequest().
    akrabat committed Mar 26, 2016
  2. Edit talk

    PUT to the talk's uri using the same fields as used when creating a talk.
    akrabat committed Mar 26, 2016
  3. Delete track

    DELETE to the track's URI to delete the track.
    akrabat committed Mar 26, 2016
  4. Edit track

    PUT to the track's URI to edit the track.
    akrabat committed Mar 25, 2016
  5. Create track

    POST to the event's track_uri to create a new track for that event.
    akrabat committed Mar 26, 2016
Commits on Mar 25, 2016
  1. Add speakers when creating a talk

    Copy the same process as used by web1: the speakers array is a list of
    display names that are simply added to the talk_speaker table so that
    the users can claim their talks.
    akrabat committed Mar 25, 2016
  2. Validate talk start date

    Ensure that the talk starts between the start and end date of the event.
    akrabat committed Mar 25, 2016
Commits on Mar 6, 2016
  1. Save the uploaded image to a known filename

    Using a known filename means that we don't have to worry about deleting
    the old files when updating and that we know that the filename is
    unique.
    
    Also, rename $savedFilename to $saved_filename for consistency with the
    other variables in the method.
    akrabat committed Mar 6, 2016
Commits on Mar 2, 2016
  1. Ensure event exists

    This is required for sanity checking site admins and preventing
    event admins accessing inactive events.
    akrabat committed Mar 2, 2016
Commits on Feb 6, 2016
  1. Remove adjustment of start to page size

    This leaves start set such that the first event in the default
    collection page is the next event in time.
    akrabat committed Feb 6, 2016
  2. Add note on usage of the API to the README

    We're happy for you to use our API, but not our name...
    akrabat committed Feb 6, 2016
Commits on Feb 1, 2016
  1. Moderate reported talk comments

    A PUT to /talk_comments/{id}/reported by an authorised user with a
    decision of 'approved' or 'denied' will record the decision to hide the
    comment from the list of reported comments. If the decision is 'denied',
    then the comment is marked active.
    akrabat committed Feb 1, 2016
  2. Moderate reported event comments

    A PUT to /event_comments/{id}/reported by an authorised user with a
    decision of 'approved' or 'denied' will record the decision to hide the
    comment from the list of reported comments. If the decision is 'denied',
    then the comment is marked active.
    akrabat committed Feb 1, 2016
Commits on Jan 7, 2016
Commits on Jan 5, 2016
  1. Exclude private events from pending events count

    As the private column on events is a nullable varchar, we can only be
    sure that private = "Y" means that an event is private.
    akrabat committed Jan 5, 2016
Commits on Jan 1, 2016
  1. Return null if the model's element doesn't exist

    When retrieving an element via $model->property_name, return null if it
    doesn't exist as that is semantically correct. This also means that the
    output view transformation of the property is also to null which makes
    more sense than false as false doesn't mean not set.
    akrabat committed Jan 1, 2016