Anonymous | Login | Signup for a new account | 2012-09-13 19:32 PDT |
Main | Blog | My View | View Issues | Change Log | Roadmap | IRC Chat | Repositories | Scrum Board |
View Issue Details [ Jump to Notes ] [ Related Changesets ] | [ Issue History ] [ Print ] | |||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||
101 | Source Integration | [All Projects] General | public | 2010-02-19 01:06 | 2010-04-12 10:42 | |||
Reporter | Philipp Beckmann | |||||||
Assigned To | John Reese | |||||||
Priority | normal | Severity | feature | Reproducibility | N/A | |||
Status | resolved | Resolution | fixed | |||||
Product Version | ||||||||
Target Version | 0.14 | Fixed in Version | 0.16 | |||||
Summary | 101: Method to refresh all repos via cron | |||||||
Description | We use cron to refresh our repositories. With the preferred method (curl http://yoururl.xyz/mantisbt/plugin.php?page=Source/repo_import_latest&id=XX [^]), we have to register every repository by its ID. I attached a hack that refreshes all repos by simply looping over the output of "SourceRepo::load_all()". Run with: curl http://localhost/mantisbt/plugin.php?page=Source/refresh_all_repos [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
John Reese (administrator) 2010-03-15 14:00 |
Fix committed to master branch at 2010-03-15 20:09:45. |
John Reese (administrator) 2010-03-15 14:41 |
Philipp, just as a follow-up, I implemented your idea as an extension to the repo_import_latest page, so that using curl to hit a url like http://your.domain/mantisbt/plugin_page.php?page=Source/repo_import_latest&id=all [^] will trigger an import to all the repositories in your system. It does what you needed, but maintains the current remote import IP whitelist and such, without duplicating a lot of code. Cheers, and thanks for the idea. :) |
John Reese (administrator) 2010-04-12 10:42 |
Just as an FYI: recent commits have changed the way this new feature works. Remote imports now use a separate page ("import"), and still supports id=all. The existing page "repo_import_latest" has been updated to require an authenticated user session, and no longer supports id=all as there is no UI method of getting to that point. |
![]() |
|||
Source Integration: master 7d5409de
Timestamp: 2010-03-15 20:09:45 Author: John Reese Committer: John Reese [ Details ] [ Diff ] |
Fix 101: Allow importing of all repos via id=all Reworked import processing to allow passing id=all to the GET query instead of a numeric Repo ID. With this argument, the system will automatically run the "import latest" for all repositories configured for source integration. This will simplify the process for keeping a large number of repositories up to date via cron job. Cleaned out output from repository import to look nicer, and support an eventual UI option to import latest from all repos. |
||
mod - Source/pages/repo_import_latest.php | [ Diff ] [ File ] | ||
mod - Source/lang/strings_english.txt | [ Diff ] [ File ] | ||
![]() |
|||
Date Modified | Username | Field | Change |
2010-02-19 01:06 | Philipp Beckmann | New Issue | |
2010-02-19 01:06 | Philipp Beckmann | File Added: refresh_all_repos.php | |
2010-02-19 06:12 | John Reese | Assigned To | => John Reese |
2010-02-19 06:12 | John Reese | Status | new => assigned |
2010-02-19 06:12 | John Reese | Category | WebSVN => General |
2010-02-19 06:12 | John Reese | Target Version | => 0.16 |
2010-03-15 14:00 | John Reese | Note Added: 119 | |
2010-03-15 14:00 | John Reese | Status | assigned => resolved |
2010-03-15 14:00 | John Reese | Fixed in Version | => 0.16 |
2010-03-15 14:00 | John Reese | Resolution | open => fixed |
2010-03-15 14:00 | John Reese | Changeset attached | master 7d5409de => |
2010-03-15 14:41 | John Reese | Note Added: 120 | |
2010-04-12 10:42 | John Reese | Note Added: 178 |
Copyright © 2000 - 2012 MantisBT Group
Time: 0.1189 seconds. memory usage: 8,357 KB |