Skip to content

Set up default mappings with SourceControl.Git.Settings #250

Closed
@isc-pbarton

Description

@isc-pbarton

Say I am configuring an instance programmatically with a setup script using the SourceControl.Git.Settings API:

set settings = ##class(SourceControl.Git.Settings).%New()
do settings.%Save()

Most settings values are set to a default value, but the mappings are not set to anything. Instead I have to set each mapping individually on the Mappings property.
To make this more convenient we could check if there are any existing mappings configured. If not, set Mappings to the default values.

Activity

isc-tleavitt

isc-tleavitt commented on Apr 4, 2023

@isc-tleavitt
Collaborator

Relates to #225 re: backward-compatibility "if no mappings are configured" - might make sense to tackle simultaneously.

self-assigned this
on Apr 14, 2023
added a commit that references this issue on Sep 13, 2023

fixed issue #250 -- Set up default mappings with SourceControl.Git.Se…

added a commit that references this issue on Sep 14, 2023

Merge pull request #282 from intersystems/fix-default-mappings

84ea497
isc-rsaptars

isc-rsaptars commented on Sep 18, 2023

@isc-rsaptars
Contributor

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @isc-pbarton@isc-tleavitt@isc-rsaptars

      Issue actions

        Set up default mappings with SourceControl.Git.Settings · Issue #250 · intersystems/git-source-control