Skip to content

Commit

Permalink
Add Source Control details to Extension Settings (#1693)
Browse files Browse the repository at this point in the history
<!-- Thank you for submitting a Pull Request. If you're new to
contributing to BCApps please read our pull request guideline below
* https://github.com/microsoft/BCApps/Contributing.md
-->
#### Summary <!-- Provide a general summary of your changes -->

#### Work Item(s) <!-- Add the issue number here after the #. The issue
needs to be open and approved. Submitting PRs with no linked issues or
unapproved issues is highly discouraged. -->
Fixes
[AB#543124](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/543124)
  • Loading branch information
blrobl authored Aug 13, 2024
1 parent e2822ee commit c6e8bec
Showing 1 changed file with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ page 2511 "Extension Settings"
{
Caption = 'Resource Protection Policies defined by the extension';
Visible = IsTenantExtension;

field(AppAllowsDebuggging; AppAllowsDebuggging)
{
Caption = 'Allow Debugging';
Expand All @@ -97,6 +97,26 @@ page 2511 "Extension Settings"
ToolTip = 'Specifies if the publisher allows a symbol package download will contain the source code and all other resources that were part of the extension package.';
}
}

group("Source control details")
{
Caption = 'Source control details';
Visible = IsSourceInformationAvailable;

field(RepositoryUrl; RepositoryUrl)
{
Caption = 'Repository URL';
Editable = false;
ToolTip = 'Specifies the URL of the repository where the source code of the project can be found.';
ExtendedDatatype = URL;
}
field(CommitId; CommitId)
{
Caption = 'Commit ID';
Editable = false;
ToolTip = 'Specifies the commit ID of the source code for the current version of the project.';
}
}
}
}

Expand All @@ -118,6 +138,9 @@ page 2511 "Extension Settings"
AppAllowsDebuggging := IsTenantExtension and ExtensionInstallationImpl.AllowsDebug(PublishedApplication."Resource Exposure Policy");
AppAllowsDownloadSource := IsTenantExtension and ExtensionInstallationImpl.AllowsDownloadSource(PublishedApplication."Resource Exposure Policy");
AppAllowsDownloadSourceInSymbols := IsTenantExtension and ExtensionInstallationImpl.AllowsDownloadSourceInSymbols(PublishedApplication."Resource Exposure Policy");
RepositoryUrl := PublishedApplication."Source Repository Url";
CommitId := PublishedApplication."Source Commit ID";
IsSourceInformationAvailable := PublishedApplication."Source Repository Url" <> '';
end;
end;

Expand All @@ -142,10 +165,13 @@ page 2511 "Extension Settings"
AppIdValue: Text;
AppVersionDisplay: Text;
PublishedAs: Text;
RepositoryUrl: Text;
CommitId: Text;
AppIsInstalled: Boolean;
IsTenantExtension: Boolean;
AppAllowsDebuggging: Boolean;
AppAllowsDownloadSource: Boolean;
AppAllowsDownloadSourceInSymbols: Boolean;
CanManageExtensions: Boolean;
}
IsSourceInformationAvailable: Boolean;
}

0 comments on commit c6e8bec

Please sign in to comment.