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

Simple edge discovery: spelling and linting #223

Merged
merged 3 commits into from
Mar 25, 2024

Conversation

nicolacdnll
Copy link
Collaborator

@nicolacdnll nicolacdnll commented Mar 21, 2024

What type of PR is this?

Add one of the following kinds:

  • documentation

What this PR does / why we need it:

Abide with the Megalinter workflow and spelling. Changes to the API itself need a dedicated PR.

Current linting is complaining about these two lines that are a regex and I'm not sure how to hard wrap. In any case, we can use equivalent regex that are also shorter. But that's for another PR.

- pattern: "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"
- pattern: "^((:|(0?|([1-9a-f][0-9a-f]{0,3}))):)((0?|([1-9a-f][0-9a-f]{0,3})):){0,6}(:|(0?|([1-9a-f][0-9a-f]{0,3})))$" 

image

Which issue(s) this PR fixes:

None

@nicolacdnll nicolacdnll added the documentation Indicating issues with API documentation or supplementary documents label Mar 21, 2024
Copy link

github-actions bot commented Mar 21, 2024

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 2 0 0.03s
✅ JSON eslint-plugin-jsonc 1 0 0 1.32s
✅ JSON jsonlint 1 0 0.17s
✅ JSON prettier 1 1 0 0.98s
✅ JSON v8r 1 0 1.85s
❌ OPENAPI spectral 9 7 17.0s
✅ REPOSITORY git_diff yes no 0.55s
✅ REPOSITORY secretlint yes no 4.6s
❌ YAML yamllint 9 1 4.48s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@@ -1,50 +1,60 @@
# Edge Discovery APIs

## Simple Discovery API
This API allows a client application to discover the closest MEC platform to the UE hosting the client application. 'Closest' means 'shorteset network path' as that will give the shortest propogation distance, which is a major factor in latency.

This API allows a client application to discover the closest MEC platform to the UE hosting the client application. 'Closest' means 'shortest network path' as that will give the shortest propagation distance, which is a major factor in latency.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should it be "platforms"? Plural as the API returns the array of platforms.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should it be "platforms"? Plural as the API returns the array of platforms.

No, Simple Edge Discovery returns only the closest platform. For convenience this is returned as an array with one member, to allow easier portability of parsing code to the other Edge Cloud API that will return multiple platforms.

@nicolacdnll nicolacdnll marked this pull request as draft March 21, 2024 14:06
17. "I can ask the operator to inform about the application instance details e.g., communication endpoints, resource consumed etc"
#### Provisioning intents

1. "I can retrieve a list of the operator’s MECs and their status, ordering the results by location and filtering by status (active/inactive/unknown)"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We have terms with alternate words e.g. here it says MECs but the API says MEC Platforms

21. "I can discover the optimal application service endpoint for a specific terminal, taking into account mobility events, connectivity, shortest network path, cost, network load, MEC platform load etc."
#### Runtime intents

19. "I can discover the closest MEC platform to a particular terminal (closest in terms of shortest network path)"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here we have MEC platform while at line 33 it is MECs

@@ -7,7 +7,7 @@ info:
---
# Summary

The Simple Edge Discovery API returns the name of the closest operator MEC platform to a particular user device.
The Simple Edge Discovery API returns the name of the closest operator MEC platform to a particular user device.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should it be "platforms"? Singular to Plural?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@gunjald I'm not changing the content or meaning of the API.
I'm just applying linting and spelling. These issues you comment need a dedicated PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok. Then we can leave this comment for now and will address it later as separate PR

@nicolacdnll nicolacdnll force-pushed the simple-edge-discovery/spelling-linting branch from a9c8d85 to b971eda Compare March 22, 2024 08:46
@nicolacdnll nicolacdnll changed the title Simple edge discovery/spelling linting Simple edge discovery: spelling and linting Mar 22, 2024
@nicolacdnll nicolacdnll marked this pull request as ready for review March 22, 2024 08:47
@Kevsy
Copy link
Collaborator

Kevsy commented Mar 25, 2024

Approved - thanks @nicolacdnll for the good work! - and I will port the new format into #194 (The Simple Edge Discovery PR with substantial content changes). Also noted that the README will need to change in a separate PR.

@Kevsy Kevsy merged commit 13d9380 into main Mar 25, 2024
1 check failed
@nicolacdnll nicolacdnll deleted the simple-edge-discovery/spelling-linting branch March 25, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Indicating issues with API documentation or supplementary documents
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants