Skip to content

BroadcomMFD/bridge-for-git-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bridge for Git Explorer

Version Downloads Support

Bridge for Git Explorer enables you to work with work-environment Git-Endevor mappings that are synchronized with Endevor using Endevor Bridge for Git. When you work with a work-environment mapping, you may need to add elements from up the Endevor map back to your mapping. Bridge for Git Explorer reads the information about the mapping that you cloned in your VS Code workspace and provides a list of elements from up the map for a specified Endevor inventory location.

The extension enables developers working with Bridge for Git mappings to:

  • Configure the pre-push hook
  • Add elements to their mapping
  • Add elements with dependencies to their mapping
  • See the history of changes to elements
  • View the activity of their mapping
  • Specify processor groups for elements in their mapping

Table of Contents

Prerequisites

Ensure that you meet the following host-side and client-side software requirements before you use Bridge for Git Explorer:

Host-side prerequisites:

  • Install either Endevor version 18.0.12 with the SO09580 and SO09581 PTFs or Endevor version 18.1 with the SO15978 PTF.
  • Install Endevor Web Services.
  • Install Endevor Bridge for Git.

Client-side prerequisites:

  • Install Visual Studio Code 1.82 or higher.
  • Access to either Endevor version 18.0.12 with the SO09580 and SO09581 PTFs or Endevor version 18.1 with the SO15978 PTF.
  • Access to Bridge for Git version 2.13 or higher.
  • Cloned and opened synchronized Git-Endevor mapping in the VS Code workspace. For more information, see Access and Clone a Git-Endevor Mapping in the Broadcom documentation.

Getting Started

Ensure that you have a Git-Endevor mapping in your VS Code workspace to start working with the extension. Review the use cases to see how you can use the full potential of Bridge for Git Explorer.

With the 0.5.0 release, Bridge for Git Explorer introduces the following features:

  • Configuration of the pre-push hook for a mapping
  • Ability to view the full details of mapping activity operations
  • Ability to specify a processor group for newly created elements in the mapping

Create Profiles

In order to start working with Bridge for Git Explorer, the following access information is required by the extension to work with your mapping:

  • Your Endevor credentials for the Endevor Connection used by the mapping
  • Your git server Personal Access Token (PAT)

This access information can be predefined in Zowe V1 profiles and Zowe V2 team configuration (team config) files. However, you do not need to have these types of profiles to work with the extension. If you do not have Zowe profiles or team config files, the extension prompts you to specify missing values. In this scenario, the specified values are stored until the end of the VS Code session only.

Note: Credentials from existing Zowe profiles and team config files persist between Bridge for Git Explorer sessions.

If you are considering using Zowe profiles, ensure that you create two types of profiles: an Endevor profile and an EBG profile.

Note: Skip the following procedures if you already have the required profiles or you are not planning to use the profile configuration or Zowe at all.

  • Create an Endevor profile.

    1. Use the following Zowe CLI command to create an Endevor profile:

      zowe profiles create endevor <profile name> --protocol http(s) --host <hostname> --port <port number> --user <endevor username> --password <endevor pwd>
    2. Ensure that the profile has the same Endevor configuration that is used for the Git-Endevor mapping in your workspace. For more information about creating an Endevor profile, see Endevor Plug-in for Zowe CLI in the Broadcom documentation. Alternatively, you can use an API ML base profile. For more information see Base Profiles on Zowe Docs.

  • Create an EBG profile with Git credentials.

    1. Use the following Zowe CLI command to create an Endevor profile:

      zowe profiles create ebg <profile_name> --protocol http(s) --host <hostname> --port <port number> --user <git_user> --token <personal_access_token>
    2. Ensure that the profile contains the same information for the Bridge for Git server you used to create the mapping. For more information about creating an Endevor Bridge for Git profile, see Endevor Bridge for Git Plug-in for Zowe CLI in the Broadcom documentation.

You now can access your work-environment mapping in your workspace and start to use the extension.

Work with Elements

Expand your Endevor inventory in the tree and proceed to work with the elements.

Follow these steps:

  1. Click the Bridge for Git Explorer icon in the Activity Bar.

    The extension opens and the name and branch of your work-environment mapping are displayed in the tree.

  2. Click the name of the mapping to expand the tree.

  3. View the available systems, subsystems, and elements of the Endevor inventory location by browsing the folders in the tree.

  4. Click an element to view its contents.

  5. (Optional) To see the location details of an element, hover over and right-click the element, and select View details.

Team Configuration File

Bridge for Git Explorer supports reading a global team configuration (team config) file. Usually, a system administrator or team leader generates a team config file that contains information about the profiles you need to access certain services, such as Endevor and Bridge for Git. You can use global team configs with your team members to share information about your Endevor connections and Bridge for Git server. For more information about team config, see Using Team Profiles on Zowe Docs.

As an application developer, you can obtain a shared global configuration file from your system administrator and use the file to access shared systems. As a system administrator, ensure that you install Zowe CLI on your workstation before you create a team configuration file.

Use Cases

Review the following use cases to familiarize yourself with the available features of the extension:

Configure the Pre-push Hook

Bridge for Git mappings include a pre-push hook. The pre-push hook validates changes to elements in the repo against changesets in the git server and Endevor. The pre-push hook specifically looks at the fingerprints of the element, the type, the name, and the location in the folder structure. If your changes are out of date (fingerprint does not match) or any of the file or location conventions are not met, then the pre-push hook will prevent you from pushing to the git server.

We recommend that you install the pre-push hook when you start working with a mapping.

When you have a Bridge for Git mapping open in your workspace, Bridge for Git Explorer prompts you to install the pre-push hook. Ensure that you provide your git username or PAT, depending on your configuration of Bridge for Git.

You can additionally uninstall the pre-push if needed through the command palette.

For more information about how to set up pre-push hooks, see Set up Hooks.

Add to Mapping

When you navigate the Endevor map and find the needed element, you can select and add the element to your synchronized mapping. Then you can download the element to your local branch by pulling the element from you remote repository.

  1. Right-click the element you want to add and select Add to Mapping.

    You receive a message that your request has been queued.

  2. Ensure that your element is added to the repository by checking the status of the mapping in the Bridge for Git Mapping Activity section.

    Alternatively, you can check the status of the mapping in the Bridge for Git application.

  3. Click the Source Control icon in the VS Code Activity Bar.

  4. Click the ... (three ellipses) icon in the Source Control Repositories section.

  5. Select the Pull option to synchronize your remote repository with the local repository.

    Alternatively, you can issue the git pull command in your terminal to synchronize the repositories.

    Your element is now available to work with locally.

Add to Mapping

Add to Mapping with Dependencies

You can select and add an element with associated files to your synchronized mapping.

Note: An element can have only up to 50 dependencies.

Right-click an element with dependencies you want to add and select Add to Mapping With Dependencies.

As well as with the previous option, you can download an element to your cloned repository by pulling the element, using the in-built git VS Code Pull option or by issuing the git pull command in your terminal.

For more information about work-environment Git-Endevor mappings, see Work with Git to Endevor Mappings.

Add to Mapping with Dependencies

Show History

Review the history of the elements from up the map in your mapping to identify changes and see the authors and dates of changes. The history of changes is displayed in the Element History section in the explorer tree.

  1. Right-click an element and select the Show History option.

    The element is displayed in the editor area. The Element History section displays a list of changes.

  2. Select an item from the list to display the details.

    The element with highlighted changes is displayed in the editor area.

Show History

Specify Processor Groups for Elements

Specify a processor group for an element. You can specify a processor group for existing and newly created elements in your mapping.

  1. Open your workspace in VS Code.

  2. Right-click an element in the tree and select the Update Processor Group option.

    The drop-down menu with processor groups is displayed in the editor area.

  3. Select a processor group from the drop-down menu.

    The notification confirming the update is displayed.

  4. Push a commit to synchronize the element with your GitHub repository.

Specify Processor Groups for Elements

Review Mapping Activity

The extension enables you to review the Bridge for Git mapping activity that lists events and their respective actions for the currently opened mapping. The events include mapping initialization, refresh, generate, and deletion.

For example, you can review whether a newly added element is already in your mapping so that you can pull the added element back to your local repository.

  1. Add an element to your mapping by using the Add to Mapping option.

  2. Navigate to the Bridge for Git Mapping Activity section.

  3. Scroll through the operations for the mapping and optionally right+click and select View Operation Details for a particular entry.

    If there are any errors with the operation, the details will provide you with actionable information.

  4. Check the status of the repository.

    If the added element is in the repository already, you can pull the element back to your cloned repository.

Usage Tips

  • Select multiple elements: You can select multiple elements and perform actions against the selected elements at once. Press and hold Ctrl (or ⌘) + click elements you want to select. You can then right-click one of the selected elements to see available options. To unselect the elements, press Esc key.

Troubleshooting

To identify issues in Bridge for Git Explorer, view specific information related to an error message in the output stream of the extension.

Follow these steps:

  1. Open a new terminal.
  2. Select the OUTPUT tab.
  3. Select Bridge for Git Explorer in the drop-down list at top right corner of the terminal dialog box.

Technical Assistance and Support

The Bridge for Git Explorer extension is made available to customers on the Visual Studio Code Marketplace in accordance with the terms and conditions contained in the provided End-User License Agreement (EULA).

If you are on active support for Endevor, you get technical assistance and support in accordance with the terms, guidelines, details, and parameters that are located within the Broadcom Working with Support guide.

This support generally includes:

  • Telephone and online access to technical support
  • Ability to submit new incidents 24x7x365
  • 24x7x365 continuous support for Severity 1 incidents
  • 24x7x365 access to Broadcom Support
  • Interactive remote diagnostic support

Technical support cases must be submitted to Broadcom in accordance with guidance provided in “Working with Support”.

Note: To receive technical assistance and support, you must remain compliant with “Working with Support”, be current on all applicable licensing and maintenance requirements, and maintain an environment in which all computer hardware, operating systems, and third party software associated with the affected Broadcom software are on the releases and version levels from the manufacturer that Broadcom designates as compatible with the software. Changes you elect to make to your operating environment could detrimentally affect the performance of Broadcom software and Broadcom shall not be responsible for these effects or any resulting degradation in performance of the Broadcom software. Severity 1 cases must be opened via telephone and elevations of lower severity incidents to Severity 1 status must be requested via telephone.


Copyright © 2024 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published