Skip to content
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

3.8.0 Edge logging #175

Merged
merged 64 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
9765e2e
Merge branch 'main' of github.com:adobe/aio-cli-plugin-api-mesh
dthampy Jun 7, 2023
522eec6
Merge branch 'main' of github.com:adobe/aio-cli-plugin-api-mesh
dthampy Mar 1, 2024
baad1ba
Merge branch 'main' of github.com:adobe/aio-cli-plugin-api-mesh
dthampy Aug 2, 2024
5a20685
download the s3Objects via Presigned urls as a stream into a single …
dthampy Aug 3, 2024
5da2af0
download files from pre-signed urls in S3
dthampy Aug 8, 2024
f47be9a
POCs for testing download files via preSigned urls as stream file and…
dthampy Aug 14, 2024
aa9365e
remove commented out code
dthampy Aug 15, 2024
7ec8cc1
Merge pull request #164 from adobe/release/3.7.0-edge-ga
amolina-adobe Aug 16, 2024
a468c30
add new command to download logs from S3 via presigned urls
dthampy Aug 27, 2024
8d97533
removing POC code from the branch
dthampy Aug 27, 2024
85ab3ae
add column headers as first line in file
dthampy Aug 28, 2024
4d7b751
added additional validation to user provided time ranges
dthampy Aug 28, 2024
b4ce4f7
add additional check for logs beyond 30 day time period and rearrange…
dthampy Aug 30, 2024
1b17384
address review comments
dthampy Sep 3, 2024
e54f1d7
fix lint error
dthampy Sep 3, 2024
4753827
only csv files are supported for output
dthampy Sep 3, 2024
7bff763
fix: cext-3092: add log:list command with mock data
dani97 Sep 4, 2024
93d4186
fix: cext-3092: lint fix
dani97 Sep 4, 2024
17081bd
remove commented out line
dthampy Sep 4, 2024
87dc9dd
updated messaging
dthampy Sep 4, 2024
a53281d
update messaging based on CR comments
dthampy Sep 4, 2024
52bda0b
Merge pull request #165 from adobe/CEXT-3440-presignedUrls-bulk-logs
dthampy Sep 5, 2024
0bf1f37
add Product 's recommendation on messaging to improve user experience
dthampy Sep 6, 2024
4810d8d
fixed the regular expression
dthampy Sep 6, 2024
ffed33b
feat: add command to fetch single log by rayId
AjazSumaiya Sep 6, 2024
1668a21
add unit tests and fix bugs with validation
dthampy Sep 9, 2024
0817edf
remove commented out test
dthampy Sep 9, 2024
b1cd59b
modify the test to remove hardcoded start and end time to ensure test…
dthampy Sep 9, 2024
93f16e1
updated message to conform to documentation standard
dthampy Sep 9, 2024
13187db
CR comments
dthampy Sep 9, 2024
bbe9c79
clean up test
dthampy Sep 9, 2024
f1c3144
added additional tests for validating various incorrect date and date…
dthampy Sep 10, 2024
8de4121
forgot the test
dthampy Sep 10, 2024
3ce843b
Merge branch 'epic/cloudflare-edge-logging' of github.com:adobe/aio-c…
dani97 Sep 10, 2024
a4f8892
fix: cext-3092: fixed cli
dani97 Sep 10, 2024
e2aeab3
feat: updated error statement for logsNotFound
AjazSumaiya Sep 10, 2024
a5b5794
Merge pull request #168 from adobe/CEXT-3604-improve-user-experience-…
dthampy Sep 10, 2024
c90d3c7
fix: cext-3092: added list logs command
dani97 Sep 11, 2024
018d5b5
Merge branch 'epic/cloudflare-edge-logging' of github.com:adobe/aio-c…
dani97 Sep 11, 2024
f7b7680
test: cext-3092: added tests
dani97 Sep 11, 2024
87abefd
fix: cext-3092: fix linters
dani97 Sep 11, 2024
23a93ec
Merge remote-tracking branch 'origin/epic/cloudflare-edge-logging' in…
dthampy Sep 11, 2024
c392eea
fix: cext-3092: recent logs
dani97 Sep 12, 2024
28b528b
test: cext-3092: fix tests
dani97 Sep 12, 2024
d36db7b
test: cext-3092: fix tests
dani97 Sep 12, 2024
c99c0af
fix: address review comments
AjazSumaiya Sep 13, 2024
fbbe271
fix: cext-3092: recent logs
dani97 Sep 13, 2024
3b83a81
fix: cext-3092: recent logs
dani97 Sep 13, 2024
cfca3c2
addressing a very minor CR comment
dthampy Sep 13, 2024
af061e7
dummy change to trigger a build
dthampy Sep 13, 2024
dd615ce
addressed the missed CR comments and updated test
dthampy Sep 13, 2024
f003070
fix the unit tests and addressed missed CR comments
dthampy Sep 13, 2024
6e446f1
Merge pull request #166 from adobe/cext-3092-recent-logs
dthampy Sep 13, 2024
3e92682
Merge pull request #167 from adobe/cext-3259
dthampy Sep 13, 2024
128e865
fix: cext-3525: fix org code
dani97 Sep 16, 2024
6d5ac06
Merge pull request #170 from adobe/cext-3525-cli-fixes
dthampy Sep 16, 2024
1d5027e
publishing the 3.8.0-alpha.1 of edge logging
dthampy Sep 16, 2024
8ba15e8
Merge pull request #171 from adobe/cloudflare-edge-logging-alpha-version
dthampy Sep 16, 2024
aedec88
bug fix while end to end testing
dthampy Sep 17, 2024
88b2b8c
bugfix 3.8.0-alpha.2
dthampy Sep 17, 2024
c7e9649
Merge pull request #172 from adobe/additional-bugfix-time-validation
dani97 Sep 17, 2024
bff300b
update package version to 3.8.0-beta.1
dthampy Sep 18, 2024
d91adfd
directly going to version to 3.8.0 instead of an interim beta
dthampy Sep 24, 2024
8c3585c
Merge pull request #173 from adobe/epic/cloudflare-edge-logging
dthampy Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions .github/.metadata.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"templateVersion": "0.2",
"product": {
"name": "API Mesh",
"description": "Aio cli plugin api mesh. CLI plugins for api-mesh installed with aio."
},
"contacts": {
"team": {
"name": "Star-Griffins",
"DL": "Grp-Star-Griffins",
"slackChannel": "star-griffins"
}
},
"ticketTracker": {
"functionalJiraQueue": {
"projectKey": "CEXT",
"component": ""
},
"securityJiraQueue": {
"projectKey": "MAGREQ",
"component": "MAGREQ/Magento Extensibility"
}
},
"productionCodeBranches": ["main"]
}
"templateVersion": "0.2",
"product": {
"name": "API Mesh",
"description": "Aio cli plugin api mesh. CLI plugins for api-mesh installed with aio."
},
"contacts": {
"team": {
"name": "Star-Griffins",
"DL": "Grp-Star-Griffins",
"slackChannel": "star-griffins"
}
},
"ticketTracker": {
"functionalJiraQueue": {
"projectKey": "CEXT",
"component": ""
},
"securityJiraQueue": {
"projectKey": "MAGREQ",
"component": "MAGREQ/Magento Extensibility"
}
},
"productionCodeBranches": ["main"]
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Prerequisites

* [aio-cli](https://github.com/adobe/aio-cli).
* [node.js](https://nodejs.org/en/)
* [yarn](https://classic.yarnpkg.com/lang/en/docs/install).
- [aio-cli](https://github.com/adobe/aio-cli).
- [node.js](https://nodejs.org/en/)
- [yarn](https://classic.yarnpkg.com/lang/en/docs/install).

To install a revision from this repository:

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adobe/aio-cli-plugin-api-mesh",
"version": "3.7.0",
"version": "3.8.0",
"description": "Adobe I/O CLI plugin to develop and manage API mesh sources",
"keywords": [
"oclif-plugin"
Expand Down Expand Up @@ -86,6 +86,7 @@
"jsmin": "1.0.1",
"json-interpolate": "^1.0.3",
"lru-cache": "^7.14.1",
"newrelic": "^11.0.0",
"node-clipboardy": "^1.0.3",
"node-fetch": "2.6.1",
"pino": "^7.9.2",
Expand All @@ -94,8 +95,7 @@
"source-registry-storage-adapter": "github:devx-services/source-registry-storage-adapter#main",
"util": "^0.12.5",
"uuid": "^8.3.2",
"yaml": "^2.4.2",
"newrelic": "^11.0.0"
"yaml": "^2.4.2"
},
"devDependencies": {
"@babel/eslint-parser": "^7.15.8",
Expand Down
4 changes: 2 additions & 2 deletions src/commands/__fixtures__/files/requestParams.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"type": "updatedContent"
}
"type": "updatedContent"
}
6 changes: 3 additions & 3 deletions src/commands/__fixtures__/openapi-schema.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"id": "2"
}
"$schema": "http://json-schema.org/draft-04/schema",
"id": "2"
}
4 changes: 2 additions & 2 deletions src/commands/__fixtures__/requestParams.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"type": "updatedContent"
}
"type": "updatedContent"
}
56 changes: 28 additions & 28 deletions src/commands/__fixtures__/sample_fully_qualified_mesh.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"meshConfig": {
"sources": [
{
"name": "<json_source_name>",
"handler": {
"JsonSchema": {
"baseUrl": "<json_source__baseurl>",
"operations": [
{
"type": "Query",
"field": "<query>",
"path": "<query_path>",
"method": "POST",
"requestSchema": "./schemaBody.json"
}
]
}
}
}
],
"files": [
{
"path": "./schemaBody.json",
"content": "{\"type\":\"dummyContent\"}"
}
]
}
}
"meshConfig": {
"sources": [
{
"name": "<json_source_name>",
"handler": {
"JsonSchema": {
"baseUrl": "<json_source__baseurl>",
"operations": [
{
"type": "Query",
"field": "<query>",
"path": "<query_path>",
"method": "POST",
"requestSchema": "./schemaBody.json"
}
]
}
}
}
],
"files": [
{
"path": "./schemaBody.json",
"content": "{\"type\":\"dummyContent\"}"
}
]
}
}
44 changes: 22 additions & 22 deletions src/commands/__fixtures__/sample_mesh_files.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"meshConfig": {
"sources": [
{
"name": "<json_source_name>",
"handler": {
"JsonSchema": {
"baseUrl": "<json_source__baseurl>",
"operations": [
{
"type": "Query",
"field": "<query>",
"path": "<query_path>",
"method": "POST",
"requestSchema": "./requestParams.json"
}
]
}
}
}
]
}
}
"meshConfig": {
"sources": [
{
"name": "<json_source_name>",
"handler": {
"JsonSchema": {
"baseUrl": "<json_source__baseurl>",
"operations": [
{
"type": "Query",
"field": "<query>",
"path": "<query_path>",
"method": "POST",
"requestSchema": "./requestParams.json"
}
]
}
}
}
]
}
}
26 changes: 13 additions & 13 deletions src/commands/__fixtures__/sample_mesh_invalid_file_content.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"meshConfig":{
"sources":[
{
"name":"CurrencyAPI",
"handler":{
"openapi":{
"source":"./openapi-schema.json"
}
}
}
]
}
}
"meshConfig": {
"sources": [
{
"name": "CurrencyAPI",
"handler": {
"openapi": {
"source": "./openapi-schema.json"
}
}
}
]
}
}
50 changes: 24 additions & 26 deletions src/commands/__fixtures__/sample_mesh_invalid_file_name.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
{
"meshConfig":{
"sources":[
{
"name":"<json_source_name>",
"handler":{
"JsonSchema":{
"baseUrl":"<json_source__baseurl>",
"operations":[
{
"type":"Query",
"field":"<query>",
"path":"<query_path>",
"method":"POST",
"requestSchema":"./requestJSONParameters.json"
}
]
}
}
}
],
"additionalTypeDefs":"<additional_Type_definitions>",
"additionalResolvers":[
"./additional-resolvers.js"
]
}
}
"meshConfig": {
"sources": [
{
"name": "<json_source_name>",
"handler": {
"JsonSchema": {
"baseUrl": "<json_source__baseurl>",
"operations": [
{
"type": "Query",
"field": "<query>",
"path": "<query_path>",
"method": "POST",
"requestSchema": "./requestJSONParameters.json"
}
]
}
}
}
],
"additionalTypeDefs": "<additional_Type_definitions>",
"additionalResolvers": ["./additional-resolvers.js"]
}
}
44 changes: 22 additions & 22 deletions src/commands/__fixtures__/sample_mesh_invalid_paths.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"meshConfig": {
"sources": [
{
"name": "<json_source_name>",
"handler": {
"JsonSchema": {
"baseUrl": "<json_source__baseurl>",
"operations": [
{
"type": "Query",
"field": "<query>",
"path": "<query_path>",
"method": "POST",
"requestSchema": "./schemaBody.json"
}
]
}
}
}
]
}
}
"meshConfig": {
"sources": [
{
"name": "<json_source_name>",
"handler": {
"JsonSchema": {
"baseUrl": "<json_source__baseurl>",
"operations": [
{
"type": "Query",
"field": "<query>",
"path": "<query_path>",
"method": "POST",
"requestSchema": "./schemaBody.json"
}
]
}
}
}
]
}
}
Loading
Loading