Skip to content

Conversation

@Guts
Copy link
Collaborator

@Guts Guts commented Oct 2, 2025

When a profile contains plugins installed from a third-party repository
, Actually the export gives:

{
    "$schema": "https://raw.githubusercontent.com/qgis-deployment/qgis-deployment-toolbelt-cli/main/docs/schemas/profile/qgis_profile.json",
    "plugins": [
        {
            "name": "Azimuth and Distance Calculator",
            "folder_name": "AzimuthDistanceCalculator",
            "official_repository": true,
            "plugin_id": 606,
            "version": "2.0.2"
        },
        {
            "name": "DICT",
            "folder_name": "DICT",
            "official_repository": true,
            "plugin_id": 1545,
            "version": "1.0.2"
        },
        {
            "name": "Plugin Reloader",
            "folder_name": "plugin_reloader",
            "official_repository": true,
            "plugin_id": 143,
            "version": "0.18"
        },
        {
            "name": "Profile Manager",
            "folder_name": "profile_manager",
            "official_repository": true,
            "plugin_id": 3547,
            "version": "0.6.0"
        },
        {
            "name": "QRestart",
            "folder_name": "QRestart",
            "official_repository": true,
            "plugin_id": 2887,
            "version": "0.2"
        }
    ]
}

With this PR:

{
    "$schema": "https://raw.githubusercontent.com/qgis-deployment/qgis-deployment-toolbelt-cli/main/docs/schemas/profile/qgis_profile.json",
    "plugins": [
        {
            "name": "Azimuth and Distance Calculator",
            "folder_name": "AzimuthDistanceCalculator",
            "version": "2.0.2",
            "plugin_id": 606,
            "official_repository": true
        },
        {
            "name": "DICT",
            "folder_name": "DICT",
            "version": "1.0.2",
            "plugin_id": 1545,
            "official_repository": true
        },
        {
            "name": "Plugin Reloader",
            "folder_name": "plugin_reloader",
            "version": "0.18",
            "plugin_id": 143,
            "official_repository": true
        },
        {
            "name": "QRestart",
            "folder_name": "QRestart",
            "version": "0.2",
            "plugin_id": 2887,
            "official_repository": true
        },
        {
            "name": "reperesDeCrues",
            "folder_name": "reperesDeCrues",
            "version": "1.5.0",
            "plugin_id": 3214691075,
            "official_repository": false,
            "download_url": "https://plugins.custom.org/download.php?plugin=reperesDeCrues.1.5.0"
        }
    ]
}

❤️ Funded by Oslandia

@Guts
Copy link
Collaborator Author

Guts commented Oct 2, 2025

@nicogodet if you want to review this one, you could be interested in.

@Guts Guts force-pushed the qdt/support-plugins-from-unofficial-repository branch from ad3426e to b07b25c Compare October 2, 2025 16:37
@Guts Guts marked this pull request as draft October 2, 2025 16:58
Comment on lines +233 to +234
elif plugin_info and not plugin_info.plugin_id:
profile_plugin_list.append(plugin_info)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bruh?

if plugin_info:
    profile_plugin_list.append(plugin_info)

is equivalent to current if/elif ?

@Guts Guts force-pushed the qdt/support-plugins-from-unofficial-repository branch from 6d30789 to 4637a7f Compare October 22, 2025 13:05
@Guts Guts force-pushed the qdt/support-plugins-from-unofficial-repository branch from 4637a7f to 35ffe59 Compare October 27, 2025 10:36
@Guts Guts self-assigned this Oct 27, 2025
@Guts Guts added the enhancement New feature or request label Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants