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

K01: Implement Full Validate Profile Method & Required Methods #611

Merged
merged 23 commits into from
Jun 21, 2024

Conversation

christopher-davis-afs
Copy link
Contributor

Describe your changes

This PR finishes fleshing out the profile validation work in SmartChargingHandler. It finalizes the implementation for a few functional requirements:

  • K01.FR.06
  • K01.FR.38
  • K01.FR.03

With this PR, we can now call validate_profile() and, based on the type of the given profile, run the specific validation methods that are applicable. We also simplify the function signatures of some of the previously added methods to take the EVSE ID.

Issue ticket number and link

Checklist before requesting a review

@christopher-davis-afs
Copy link
Contributor Author

CC: @shankari

@christopher-davis-afs christopher-davis-afs force-pushed the feature/k01-validate-profile branch 2 times, most recently from 800e8c0 to 6cd39a1 Compare May 17, 2024 13:36
@christopher-davis-afs christopher-davis-afs force-pushed the feature/k01-validate-profile branch 3 times, most recently from 14c4ab5 to ee4eac7 Compare May 30, 2024 20:32
@couryrr-afs couryrr-afs force-pushed the feature/k01-validate-profile branch from ee4eac7 to ec8fbee Compare June 3, 2024 18:25
Copy link
Contributor

@marcemmers marcemmers left a comment

Choose a reason for hiding this comment

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

Some comments before this is an actual PR. Did not look at the tests in its entirety yet.

@christopher-davis-afs christopher-davis-afs force-pushed the feature/k01-validate-profile branch from e8c77be to d4016cd Compare June 5, 2024 14:04
Copy link
Contributor

@marcemmers marcemmers left a comment

Choose a reason for hiding this comment

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

Next batch of comments. I now looked through all the code so I don't expect any more than these.

I like the clear unit tests being really specific 👍

@christopher-davis-afs christopher-davis-afs force-pushed the feature/k01-validate-profile branch 2 times, most recently from 0541f70 to 8bed65f Compare June 12, 2024 19:34
@shankari
Copy link

@the-bay-kay the high-level description is not quite correct, this PR addresses the following functional requirements:

  • K01.FR.06
  • K01.FR.20
  • K01.FR.26
  • K01.FR.38
  • K04.FR.03

Please read through my review and review the changes yourself so you get familiar with the process.

Copy link

@shankari shankari left a comment

Choose a reason for hiding this comment

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

For ease of review, it would be helpful to have a description of which functions are related to with FR, preferably in the code, so that it is easier for future maintainers to find it while reading through the code.

I have several comments, but they are primarily around improved documentation and design choices. I don't see anything obviously incorrect, and obviously the tests pass. This has already been pending for a while, so I will approve to unblock @marcemmers and anticipate that the comments will be addressed in a future cleanup PR.

@drmrd @couryrr-afs

christopher-davis-afs and others added 14 commits June 20, 2024 14:13
Tests for K01.FR.39 were previously mislabeled for K01.FR.06.

This commit relabels these tests.

Signed-off-by: Christopher Davis <[email protected]>
Signed-off-by: Coury Richards <[email protected]>
…period

This was missed in prior commits.

Signed-off-by: Christopher Davis <[email protected]>
Reworks how we handle and test conforming the validity periods for
K01.FR.06.

Signed-off-by: Christopher Davis <[email protected]>
Signed-off-by: Christopher Davis <[email protected]>
Now we can catch regressions that make valid
profiles read as invalid, and vice versa.

Signed-off-by: Christopher Davis <[email protected]>
Signed-off-by: Christopher Davis <[email protected]>
Create a static UUID and only generate a new one
for tests that rely on having different transaction
IDs.

Signed-off-by: Christopher Davis <[email protected]>
@christopher-davis-afs christopher-davis-afs force-pushed the feature/k01-validate-profile branch from 8bed65f to 6b516b6 Compare June 20, 2024 14:16
@christopher-davis-afs christopher-davis-afs marked this pull request as ready for review June 20, 2024 16:02
@marcemmers marcemmers self-requested a review June 20, 2024 16:33
@marcemmers
Copy link
Contributor

@christopher-davis-afs Just give me a sign that it is ready to merge and I will merge it ;)

@christopher-davis-afs
Copy link
Contributor Author

It is ready :)

@marcemmers marcemmers merged commit 15a632d into EVerest:main Jun 21, 2024
4 checks passed
@shankari
Copy link

@couryrr-afs @drmrd @wjmp I believe that there were several comments that here that the reviewers wanted to change, but didn't want to hold up the merge for. Now that the merge is done, it would be great to see a cleanup PR address the comments. Also, some of my comments were marked as resolved, but I don't agree with the resolution 😄

@couryrr-afs
Copy link
Contributor

@couryrr-afs @drmrd @wjmp I believe that there were several comments that here that the reviewers wanted to change, but didn't want to hold up the merge for. Now that the merge is done, it would be great to see a cleanup PR address the comments. Also, some of my comments were marked as resolved, but I don't agree with the resolution 😄

@shankari Yep — we haven’t forgotten about the code items and can get the comments added to the code base you requested. We have been prioritizing getting the Validate Profile PR merged, the Add Profiles PR ready in support of Alfen’s timelines and some other blocker around that. I thought it best to resolve comments prior to presenting the PR to the community as to avoid any confusion or further delay based on your comment about the review.

We will have a PR out soon.

@folkengine folkengine deleted the feature/k01-validate-profile branch July 24, 2024 15:15
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.

5 participants