Work Notes - dohdat/leetcode-practice GitHub Wiki
- Use absolute paths. Alias file
- We should not import like -
./SomeComponent.js or ../../SomeComponent.js
- We should import like -
RootDir/SubDir/SomeDir/SomeComponent.js
- For Service Sandbox, use
AppSrc/service-sandbox/
- We should not import like -
- Resolve console errors in browser
- Comments everything
- Functions
- Doc string
- Props
- Separate between import (libraries, utils, other components)
- Create functional components (React Hooks), not class.
- Move any constants variables into
constants.js
- Use gettext() for string
const thresholdType = configSettingsModel.get('threshold_config_is_aggregate') ? gettext('Aggregate') : gettext('Entity');
const title = sprintf(gettext('Preview %(thresholdType)s Thresholds'), { thresholdType });
- Add new test files to mapping file:
test/cicd/itsi-feature-test-mapping.csv
- Unit tests (min 3-4 tests for each created file)
- WDIO tests
Common agile development terms
1 story point = 1 day/work
1 PI (Program Increment) is 3 months
1 sprint is 2 weeks
A Hardening Sprint is defined as a sprint focused on “catching up” on technical test debt and readying a Scrum-produced release. In this case, it typically focuses on completing testing activities such as integration, system, and full regression testing
.
What is a user story?
A user story is the smallest unit of work in an agile framework.
What is an epic?
Epics are large bodies of work that can be broken down into a number of smaller tasks (called stories).
Chrome debug is corrupted?
https://github.com/natkuhn/Chrome-debug/
KPI: Key Performance Indicator
Types of KPI Source:
- Ad hoc Search: define your own search to retrieve portion of data.
- Data Model: Use Splunk Data Models to define a search.
- Shared Base Search: Use a shared base search configuration to define a search.
How to re-run a pipeline?
Merge branch with develop?
- checkout develop
- pull
- checkout target branch
- merge develop
- resolve any conflicts
- sync
Asked to revert to develop/branch
git checkout <target_branch> <file_name>
git checkout develop apps/itsi/appserver/static/js/components/servicedefinition/kpi/alerting/KpiAlertingToggleControl.test.js
Merge Request Template
Related to ITSI-28647
- Added a common component for the selectable list with load more items on scroll capability.
- Added dependencies modal containing the services lister and KPIs table views
- Connected the sidepanel's add dependency button to the modal
- On selecting new services from the add dependency modal
- New dependent services will be shown in the table of the side panel
- The topology will be updated as per the new dependency configuration
- Handled the cyclic dependency prevention case
- Added unit tests
- Refactoring
- Improved the sandbox footer positioning
- Added missing unit tests
- Fixed existing unit tests
- Fixed existing warnings and errors around sandbox code
- Added missing doc strings
- {width=900}
===============================================================================
==== ORCA || Splunk Orchestration and Automation
===============================================================================
==== User :: mpawar
==== Deployment id :: mpawar2303021755007polw
==== Splunk Instance (running) :: Container Name mpawar2303021755007polw-so1-1
==== :: Splunkweb http://10.225.7.40:8000 (default: admin/Chang3d!)
==== :: Splunkd https://10.225.7.40:8089
===============================================================================
[admin:Chang3d!] (http://10.214.35.206:8000/en-US/app/itsi/service_sandbox?id=default_itsi_sandbox)
Additional WDIO tests to run
wdio_test: premergeServiceSandbox postmergeServiceSandbox
wdio_test: ALL_TESTS
If feature flag is not enabled in the pipeline, check wdio_test_orca.sh
curl -k -u admin:Chang3d! https://10.214.35.206:8089/servicesNS/nobody/itsi/properties/app_common_flags/itsi-service-sandbox -d disabled=0