Making WordPress.org


Ignore:
Timestamp:
08/13/2018 11:52:14 AM (8 years ago)
Author:
vedjain
Message:

WordCamp: Support Meetup Applications and review in central.

Major refactor to WordCamp post types, to extract out code which is then used in Meetup post types and application. This code is not 5.x compatible.
Eventually, the aim is to credit contributors for their work organizing meetup groups in the WordPress chapter program, and make use of existing administrative tools to meetup applications/groups.

This is the (Non exhaustive) test plan after this commit is deployed:

  • Existing WordCamp schedule
  • WordCamp organizer application render.
  • Submit WordCamp application. Fill all fields and make sure they exists in app.
  • Verify original application.
  • Verify protected fields.
  • Verify REST API responses for wordcamp posts (#)
  • Status mapping, and transition to valid next statuses.
  • Move application from Needs Vetting to Needs Site. Add private notes.
  • Track and verify application status page.
  • Create a site for wordcamp

Test plan for Meetups

  • Submit meetup applications. Fill all fields and make sure they are saved.
  • Change application status. Add and remove meta box fields to make sure they are saved.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-functions.php

    r6727 r7607  
    7272 * Get all the the entries
    7373 *
    74  * @param int $wordcamp_id
     74 * @param int $event_id
    7575 *
    7676 * @return array
    7777 */
    78 function wcpt_get_log_entries( $wordcamp_id ) {
     78function wcpt_get_log_entries( $event_id ) {
    7979    /*
    8080     * @todo Rename `_note` meta fields to `_private_note` to make it obvious to devs that the value should be
     
    8383     */
    8484    $entries        = array();
    85     $private_notes  = get_post_meta( $wordcamp_id, '_note'          );
    86     $status_changes = get_post_meta( $wordcamp_id, '_status_change' );
     85    $private_notes  = get_post_meta( $event_id, '_note'          );
     86    $status_changes = get_post_meta( $event_id, '_status_change' );
    8787
    8888    foreach ( array( 'note' => $private_notes, 'status_change' => $status_changes ) as $entry_type => $raw_entries ) {
Note: See TracChangeset for help on using the changeset viewer.