Plugin Directory

Changeset 3449331


Ignore:
Timestamp:
01/29/2026 07:45:48 AM (2 months ago)
Author:
ringier
Message:

chore: commit changes for v3.5.1 - see CHANGELOG.md

Location:
ringier-bus/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ringier-bus/trunk/CHANGELOG.md

    r3447091 r3449331  
    1313* (dependency) Fully remove Guzzle/Symfony dependencies
    1414* (dependency) Fully remove Timber/Twig
     15
     16
     17## [3.5.1] - 2026-01-29 ##
     18
     19### Added ###
     20* (UI) Added **Resume from ID** functionality to the Batch Article Sync tool, allowing users to continue interrupted syncs from a specific Article ID.
     21
     22### Changed ###
     23* (UI) Updated the sync status message to clarify when a sync is resuming versus starting fresh.
    1524
    1625
  • ringier-bus/trunk/README.md

    r3447091 r3449331  
    77**Requires at least:** 6.0 
    88**Tested up to:** 6.9 
    9 **Stable tag:** 3.5.0 
     9**Stable tag:** 3.5.1 
    1010**Requires PHP:** 8.1 
    1111**License:** GPLv2 or later 
  • ringier-bus/trunk/assets/js/sync-tools.js

    r3447091 r3449331  
    155155        const selectedType = $('input[name="bus_sync_post_type"]:checked').val();
    156156
     157        // Get the resume ID from the input box
     158        const startFromIdInput = $('#bus_sync_start_id').val();
     159        // If input is empty, default to 0 (Newest). If set, parse as Integer.
     160        let initialCursor = startFromIdInput ? parseInt(startFromIdInput, 10) : 0;
     161
    157162        if (!selectedType) {
    158163            alert('Please select a post type.');
     
    162167        let syncedCount = 0;
    163168        progressDivArticle.show();
     169
     170        // Update UI message to confirm where we are starting
     171        let startMsg = initialCursor > 0
     172            ? `Resuming sync from last known ID <strong>${initialCursor}</strong>...`
     173            : `Starting fresh sync (Newest First)...`;
     174
    164175        progressDivArticle.html(`
    165             <h3>Starting article sync (Recent First)...</h3>
     176            <h3>${startMsg}</h3>
    166177            <p><strong>Type:</strong> ${selectedType}</p>
    167178            <p style="font-weight: bold; color: #0073aa;">Please do NOT close this window.</p>
     
    174185                action: 'sync_articles',
    175186                last_id: lastIdCursor,
    176                 // Send array as the PHP backend expects 'post_types' array
    177187                post_types: [selectedType]
    178188            }, function (response) {
     
    185195                            <h3>Article Sync Complete:</h3>
    186196                            <ul>
    187                                 <li><strong>${syncedCount}</strong> articles successfully synced.</li>
     197                                <li><strong>${syncedCount}</strong> articles successfully synced in this session.</li>
    188198                            </ul>
    189199                            <strong style="color: green;">Process finished.</strong>
     
    203213        }
    204214
    205         syncNextArticle(0);
     215        // Start the loop with the ID from the input box (or 0)
     216        syncNextArticle(initialCursor);
    206217    }
    207218
  • ringier-bus/trunk/readme.txt

    r3447091 r3449331  
    44Requires at least: 6.0
    55Tested up to: 6.9
    6 Stable tag: 3.5.0
     6Stable tag: 3.5.1
    77Requires PHP: 8.1
    88License: GPLv2 or later
     
    162162== Changelog ==
    163163
     164### [3.5.1] - 2026-01-29 ###
     165
     166#### Added ####
     167* (UI) Added **Resume from ID** functionality to the Batch Article Sync tool, allowing users to continue interrupted syncs from a specific Article ID.
     168
     169#### Changed ####
     170* (UI) Updated the sync status message to clarify when a sync is resuming versus starting fresh.
     171
     172
    164173### [3.5.0] - 2026-01-21 ###
    165174
     
    177186  * Removed `GuzzleHttp\Client` in favor of native `wp_remote_post()`.
    178187  * Removed `AuthenticationInterface` dependency; now uses `BusTokenManager` directly.
     188
     189
     190### [3.4.1] - 2025-12-02 ###
     191
     192#### Added ####
     193* (code) Added a check to see if the Ringier Author plugin is enabled
     194  * If yes, only send events for authors that have their public profile set to ENABLED
     195  * If that plugin is not present or disabled, it's business as usual
     196
     197#### Fixed ####
     198* (payload) TopicEvents: title, slug and url should be array of objects
    179199
    180200
  • ringier-bus/trunk/ringier-bus.php

    r3447091 r3449331  
    1111 * Plugin URI: https://github.com/RingierIMU/mkt-plugin-wordpress-bus
    1212 * Description: A plugin to push events to Ringier CDE via the BUS API whenever an article is created, updated or deleted
    13  * Version: 3.5.0
     13 * Version: 3.5.1
    1414 * Requires at least: 6.0
    1515 * Author: Ringier SA, Wasseem Khayrattee
     
    5050 */
    5151define('RINGIER_BUS_DS', DIRECTORY_SEPARATOR);
    52 define('RINGIER_BUS_PLUGIN_VERSION', '3.5.0');
     52define('RINGIER_BUS_PLUGIN_VERSION', '3.5.1');
    5353define('RINGIER_BUS_PLUGIN_MINIMUM_WP_VERSION', '6.0');
    5454define('RINGIER_BUS_PLUGIN_DIR_URL', plugin_dir_url(__FILE__)); //has trailing slash at end
  • ringier-bus/trunk/views/admin/admin-sync-page.php

    r3447091 r3449331  
    9494    <div class="post-types-selector" style="margin-bottom: 15px; background: #fff; padding: 15px; border: 1px solid #ccd0d4;">
    9595        <?php foreach ($post_types as $pt): ?>
    96             <?php if (in_array($pt->name, $exclude)) {
    97                 continue;
    98             } ?>
     96            <?php if (in_array($pt->name, $exclude)) continue; ?>
    9997            <label style="margin-right: 15px; display: inline-block; margin-bottom: 5px;">
    10098                <input type="radio" name="bus_sync_post_type" value="<?php echo esc_attr($pt->name); ?>"
    101                     <?php checked($pt->name, 'post'); // Default to 'post' checked?> />
     99                    <?php checked($pt->name, 'post'); ?> />
    102100                <?php echo esc_html($pt->label); ?> (<code><?php echo esc_html($pt->name); ?></code>)
    103101            </label>
    104102        <?php endforeach; ?>
     103
     104        <hr style="margin: 10px 0; border: 0; border-top: 1px solid #eee;" />
     105
     106        <label for="bus_sync_start_id" style="font-weight: bold;">
     107            Resume from ID (Optional):
     108        </label>
     109        <input type="number" id="bus_sync_start_id" placeholder="e.g. 16878" class="small-text" style="margin-left: 5px;width:100px;">
     110        <p class="description" style="display:inline-block; margin-left: 5px;">
     111            (Leave empty to start from the newest. Enter the <strong>last synced ID</strong> to resume.)
     112        </p>
    105113    </div>
    106114
Note: See TracChangeset for help on using the changeset viewer.