This guide provides step-by-step instructions for maintaining the compatibility information for Guardium data sources. It is intended for use by Quality Assurance (QA) teams to ensure the accuracy and up-to-date status of the data.
- Project Requirements
- Cloning the Repository
- Starting the Application Locally
- Replacing CSV Files
- Running Consolidation Scripts
- Restarting the Application Locally
- Deploying the Application to GitHub Pages
- Pushing Changes back to Main Branch
Before beginning the maintenance process, ensure that your system meets the following requirements:
- NPM: Version 8.19.2
- Node: Version 16.18.1
- Python: Version 3.11.4
- Repository Access: Ensure that you have write access to the repository. If you do not have the necessary permissions, please contact Devan to request access.
Before making any updates or changes, ensure that you have the most current version of the repository on your local machine.
- Open your terminal.
- Navigate to the directory where you want to clone the repository.
- Clone the repository using the following git command:
git clone https://github.com/IBM/guardium-supported-datasources.git
- Create a new branch from the main branch:
git checkout -b your-branch-name
Start the application locally to verify that all functionalities are working correctly before making any data changes.
- Install all dependencies:
npm install
- Start the project locally:
npm run start
To update the compatibility data, the old CSV files need to be replaced with the new ones. Follow these steps:
- Locate the old CSV file in the directory
/consolidation-script2/data/input
. - Replace the old CSV with the new one ensuring that the file names remain consistent to avoid script errors.
After replacing the CSV files, a consolidation script must be run to consolidate and integrate the changes.
- Run the consolidation script using Python3:
python3 consolidation-script2/runner.py ./consolidation-script2/config
After running the consolidation script, it's necessary to stop and restart the application to ensure that all updates are properly applied and functioning.
- Stop the running application:
- In the first terminal, press
Ctrl+C
(on Mac) to stop the npm process.
- In the first terminal, press
- Restart the application:
npm start
After updating the CSV files, running the consolidation script, and verifying your changes, you need to push your changes to a new branch and create a Pull Request (PR) to merge them into main. Once the PR is merged, you can update your local main branch and deploy the changes to GitHub Pages.
-
Commit your changes and push them to the new branch:
git add . git commit -m "describe your changes here" git push origin your-branch name
-
Create a Pull Request:
- Go to your repository on GitHub.
- Navigate to the "Pull Requests" tab and click "New Pull Request."
- Select your branch and compare it with main.
- Submit the PR for review.
-
Merge the PR:
- Once the PR is approved, merge into main
-
Update your local main branch:
git checkout main git pull origin main
-
Build the app by running the following command in your terminal:
npm run build
-
Deploy the updates by running the following command in your terminal:
npm run deploy
This command will push the changes to the
gh-pages
branch of your GitHub repository, updating the live site. -
Verify the deployment:
- Check your GitHub repository to confirm that the
gh-pages
branch has received the updates. - Visit your GitHub Pages URL to see the changes in action (This can take upto 30 mins to come into effect).
- Check your GitHub repository to confirm that the