Skip to content

TNT-38925 - send_notifications implementation #7

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

Merged
merged 8 commits into from
Feb 17, 2021

Conversation

dcottingham
Copy link
Contributor

@dcottingham dcottingham commented Feb 4, 2021

  1. TargetClient.send_notifications(options) will send click or display notifications to Delivery API for metrics calculations.
  2. Fix CI test run to run against all configured versions of python
  3. Make all code backward compatible with python 2.7

pip install --upgrade pip "setuptools>=38.3.0,<=44.1.x" wheel pep517 pylint twine bump2version coverage coveralls
pip install -r requirements.txt
pip install -r test-requirements.txt
ifneq (,$(filter $(PYTHON_VERSION),2.7 3.4 3.5))
Copy link

@5amfung 5amfung Feb 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The github workflow image doesn't already include a proper pip?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It includes the latest version, which doesn't work for older python builds

@@ -0,0 +1,19 @@
# Copyright 2020 Adobe. All rights reserved.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2021

"id": "SummerShoesOfferNotification"
}
]
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF newline

Copy link
Contributor

@jasonwaters jasonwaters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @dcottingham ! Apologies for the delay in review.

@dcottingham dcottingham merged commit 1c09983 into adobe:main Feb 17, 2021
@dcottingham dcottingham deleted the TNT-38925 branch February 17, 2021 21:01
ericfichtel pushed a commit that referenced this pull request Sep 22, 2022
ca3c289 TNT-44008 Fix AP pre-fetch documentation (#15)
0df2586 TNT-43882: [Delivery API] Update public docs with ref to click-track metric (#13)
1b0e12d added client hints to context (#14)
8b34ffd Merge pull request #12 from ndiaconu/patch-1
495416c Update AnalyticsRequest.yaml
ad59cdd rename telemetry blob field to telemetryServerToken for request and response (#11)
6e6c5af add encoded telemetry fields to support data collected on Edge (#10)
be8f79c update TelemetryRequest fields to be double type (#9)
6240685 various bug fixes because java generator strictly follows openapi 3.0 spec (#8)
4bc2f19 TNT-41043 Add more fields to openapi telemetry spec (#7)
e4fa8ea Merge pull request #6 from adobe/TNT-40664_2
e2dd234 fix for DeliveryResponse notifications
9cf4475 Add analytics payload to Metric model for A4T support with prefetch (#5)
671d16a Update README.md
28c9893 Merge pull request #4 from adobe/TNT-40664
d25e9e8 Add LF
4bdffa7 Add notifications field to DeliveryResponse
bbbf35b TNT-40603 - adding preview mode to Delivery API (#3)
29df471 Add links to README (#1)

git-subtree-dir: openapi
git-subtree-split: ca3c2892d21f07a1163f7e24df49593fbb1cdfb3
ericfichtel added a commit that referenced this pull request Nov 3, 2022
* Squashed 'openapi/' changes from ed1850b..ca3c289

ca3c289 TNT-44008 Fix AP pre-fetch documentation (#15)
0df2586 TNT-43882: [Delivery API] Update public docs with ref to click-track metric (#13)
1b0e12d added client hints to context (#14)
8b34ffd Merge pull request #12 from ndiaconu/patch-1
495416c Update AnalyticsRequest.yaml
ad59cdd rename telemetry blob field to telemetryServerToken for request and response (#11)
6e6c5af add encoded telemetry fields to support data collected on Edge (#10)
be8f79c update TelemetryRequest fields to be double type (#9)
6240685 various bug fixes because java generator strictly follows openapi 3.0 spec (#8)
4bc2f19 TNT-41043 Add more fields to openapi telemetry spec (#7)
e4fa8ea Merge pull request #6 from adobe/TNT-40664_2
e2dd234 fix for DeliveryResponse notifications
9cf4475 Add analytics payload to Metric model for A4T support with prefetch (#5)
671d16a Update README.md
28c9893 Merge pull request #4 from adobe/TNT-40664
d25e9e8 Add LF
4bdffa7 Add notifications field to DeliveryResponse
bbbf35b TNT-40603 - adding preview mode to Delivery API (#3)
29df471 Add links to README (#1)

git-subtree-dir: openapi
git-subtree-split: ca3c2892d21f07a1163f7e24df49593fbb1cdfb3

* TNT TNT-45620 initial fix for supporting mbox parameters with dot notation

* changing f string to format to support python2

* addressing pslint issues

* adding C0209to pylint ignore, adding constructor comment and adding tests to pylint ignore

* fixing pylint R1728 error

* need to ignore R1728 to pass pylint and support python2

* adding check for unicode type for mbox custom params

* consolidating type check

* adding W1406 to pylint ignore for python2 support

* moving with_lowercase_string_values to contedt_provider

* removing unused import

* removing extra copy call and changing to is_string

* deleting old test schema

* Squashed 'target_decisioning_engine/tests/schema/' content from commit 1b1ef83

git-subtree-dir: target_decisioning_engine/tests/schema
git-subtree-split: 1b1ef83c0a64a6180eba053b6181399e6a35eacb

* code fix to pass dot param and domain parsing integration test

* code fix for domain parsing, user agent browser parsing and country code issues

* adding python support for url parse

* updating readme

* cleaning up parse_url and editing readme

Co-authored-by: Eric Fichtel <efichtel@adobe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants