-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [sc-183892] [Salesforce plugin] Implement pagination on report dataset #11
Open
alexbourret
wants to merge
5
commits into
master
Choose a base branch
from
feature/sc-183892-implement-pagination-on-report
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2bc18db
Add pagination to salesforce report [sc-183892]
alexbourret 6411b7f
version update
alexbourret 1126bd9
changelog update
alexbourret 3c8a1d4
changing default settings in SSO preset
alexbourret d80b0d9
updating makefile
alexbourret File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,62 @@ | ||
PLUGIN_VERSION=1.2.0 | ||
PLUGIN_ID=salesforce | ||
|
||
plugin: | ||
cat plugin.json|json_pp > /dev/null | ||
rm -rf dist | ||
mkdir dist | ||
zip --exclude "*.pyc" -r dist/dss-plugin-${PLUGIN_ID}-${PLUGIN_VERSION}.zip custom-recipes parameter-sets python-connectors python-lib plugin.json | ||
# Makefile variables set automatically | ||
plugin_id=`cat plugin.json | python -c "import sys, json; print(str(json.load(sys.stdin)['id']).replace('/',''))"` | ||
plugin_version=`cat plugin.json | python -c "import sys, json; print(str(json.load(sys.stdin)['version']).replace('/',''))"` | ||
archive_file_name="dss-plugin-${plugin_id}-${plugin_version}.zip" | ||
remote_url=`git config --get remote.origin.url` | ||
last_commit_id=`git rev-parse HEAD` | ||
|
||
.DEFAULT_GOAL := plugin | ||
|
||
plugin: dist-clean | ||
@echo "[START] Archiving plugin to dist/ folder..." | ||
@cat plugin.json | json_pp > /dev/null | ||
@mkdir dist | ||
@echo "{\"remote_url\":\"${remote_url}\",\"last_commit_id\":\"${last_commit_id}\"}" > release_info.json | ||
@git archive -v -9 --format zip -o dist/${archive_file_name} HEAD | ||
@if [[ -d tests ]]; then \ | ||
zip --delete dist/${archive_file_name} "tests/*"; \ | ||
fi | ||
@zip -u dist/${archive_file_name} release_info.json | ||
@rm release_info.json | ||
@echo "[SUCCESS] Archiving plugin to dist/ folder: Done!" | ||
|
||
dev: dist-clean | ||
@echo "[START] Archiving plugin to dist/ folder... (dev mode)" | ||
@cat plugin.json | json_pp > /dev/null | ||
@mkdir dist | ||
@zip -v -9 dist/${archive_file_name} -r . --exclude "tests/*" "env/*" ".git/*" ".pytest_cache/*" ".idea/*" "dist/*" | ||
@echo "[SUCCESS] Archiving plugin to dist/ folder: Done!" | ||
|
||
unit-tests: | ||
@echo "Running unit tests..." | ||
@( \ | ||
PYTHON_VERSION=`python3 -c "import sys; print('PYTHON{}{}'.format(sys.version_info.major, sys.version_info.minor))"`; \ | ||
PYTHON_VERSION_IS_CORRECT=`cat code-env/python/desc.json | python3 -c "import sys, json; print('$$PYTHON_VERSION' in json.load(sys.stdin)['acceptedPythonInterpreters']);"`; \ | ||
if [ $$PYTHON_VERSION_IS_CORRECT == "False" ]; then echo "Python version $$PYTHON_VERSION is not in acceptedPythonInterpreters"; exit 1; else echo "Python version $$PYTHON_VERSION is in acceptedPythonInterpreters"; fi; \ | ||
) | ||
@( \ | ||
rm -rf ./env/; \ | ||
python3 -m venv env/; \ | ||
source env/bin/activate; \ | ||
pip install --upgrade pip;\ | ||
pip install --no-cache-dir -r tests/python/unit/requirements.txt; \ | ||
pip install --no-cache-dir -r code-env/python/spec/requirements.txt; \ | ||
export PYTHONPATH="$(PYTHONPATH):$(PWD)/python-lib"; \ | ||
pytest tests/python/unit --alluredir=tests/allure_report || ret=$$?; exit $$ret \ | ||
) | ||
|
||
integration-tests: | ||
@echo "Running integration tests..." | ||
@( \ | ||
rm -rf ./env/; \ | ||
python3 -m venv env/; \ | ||
source env/bin/activate; \ | ||
pip3 install --upgrade pip;\ | ||
pip install --no-cache-dir -r tests/python/integration/requirements.txt; \ | ||
pytest tests/python/integration --alluredir=tests/allure_report || ret=$$?; exit $$ret \ | ||
) | ||
|
||
tests: unit-tests integration-tests | ||
|
||
dist-clean: | ||
rm -rf dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that
results_to_process
is equivalent toif results
, it could be replaced by it