Changeset 3449331
- Timestamp:
- 01/29/2026 07:45:48 AM (2 months ago)
- Location:
- ringier-bus/trunk
- Files:
-
- 6 edited
-
CHANGELOG.md (modified) (1 diff)
-
README.md (modified) (1 diff)
-
assets/js/sync-tools.js (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
-
ringier-bus.php (modified) (2 diffs)
-
views/admin/admin-sync-page.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ringier-bus/trunk/CHANGELOG.md
r3447091 r3449331 13 13 * (dependency) Fully remove Guzzle/Symfony dependencies 14 14 * (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. 15 24 16 25 -
ringier-bus/trunk/README.md
r3447091 r3449331 7 7 **Requires at least:** 6.0 8 8 **Tested up to:** 6.9 9 **Stable tag:** 3.5. 09 **Stable tag:** 3.5.1 10 10 **Requires PHP:** 8.1 11 11 **License:** GPLv2 or later -
ringier-bus/trunk/assets/js/sync-tools.js
r3447091 r3449331 155 155 const selectedType = $('input[name="bus_sync_post_type"]:checked').val(); 156 156 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 157 162 if (!selectedType) { 158 163 alert('Please select a post type.'); … … 162 167 let syncedCount = 0; 163 168 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 164 175 progressDivArticle.html(` 165 <h3> Starting article sync (Recent First)...</h3>176 <h3>${startMsg}</h3> 166 177 <p><strong>Type:</strong> ${selectedType}</p> 167 178 <p style="font-weight: bold; color: #0073aa;">Please do NOT close this window.</p> … … 174 185 action: 'sync_articles', 175 186 last_id: lastIdCursor, 176 // Send array as the PHP backend expects 'post_types' array177 187 post_types: [selectedType] 178 188 }, function (response) { … … 185 195 <h3>Article Sync Complete:</h3> 186 196 <ul> 187 <li><strong>${syncedCount}</strong> articles successfully synced .</li>197 <li><strong>${syncedCount}</strong> articles successfully synced in this session.</li> 188 198 </ul> 189 199 <strong style="color: green;">Process finished.</strong> … … 203 213 } 204 214 205 syncNextArticle(0); 215 // Start the loop with the ID from the input box (or 0) 216 syncNextArticle(initialCursor); 206 217 } 207 218 -
ringier-bus/trunk/readme.txt
r3447091 r3449331 4 4 Requires at least: 6.0 5 5 Tested up to: 6.9 6 Stable tag: 3.5. 06 Stable tag: 3.5.1 7 7 Requires PHP: 8.1 8 8 License: GPLv2 or later … … 162 162 == Changelog == 163 163 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 164 173 ### [3.5.0] - 2026-01-21 ### 165 174 … … 177 186 * Removed `GuzzleHttp\Client` in favor of native `wp_remote_post()`. 178 187 * 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 179 199 180 200 -
ringier-bus/trunk/ringier-bus.php
r3447091 r3449331 11 11 * Plugin URI: https://github.com/RingierIMU/mkt-plugin-wordpress-bus 12 12 * 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. 013 * Version: 3.5.1 14 14 * Requires at least: 6.0 15 15 * Author: Ringier SA, Wasseem Khayrattee … … 50 50 */ 51 51 define('RINGIER_BUS_DS', DIRECTORY_SEPARATOR); 52 define('RINGIER_BUS_PLUGIN_VERSION', '3.5. 0');52 define('RINGIER_BUS_PLUGIN_VERSION', '3.5.1'); 53 53 define('RINGIER_BUS_PLUGIN_MINIMUM_WP_VERSION', '6.0'); 54 54 define('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 94 94 <div class="post-types-selector" style="margin-bottom: 15px; background: #fff; padding: 15px; border: 1px solid #ccd0d4;"> 95 95 <?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; ?> 99 97 <label style="margin-right: 15px; display: inline-block; margin-bottom: 5px;"> 100 98 <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'); ?> /> 102 100 <?php echo esc_html($pt->label); ?> (<code><?php echo esc_html($pt->name); ?></code>) 103 101 </label> 104 102 <?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> 105 113 </div> 106 114
Note: See TracChangeset
for help on using the changeset viewer.