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

Upgrade and adapt to the new GOBL Extensions feature #19

Merged
merged 4 commits into from
Sep 21, 2023
Merged

Conversation

cavalle
Copy link
Contributor

@cavalle cavalle commented Aug 29, 2023

  • This PR adapts the codebase to use the new IT extensions added in Extensions refactor gobl#184
  • Also adapts to other changes in GOBL since the last upgrade
  • Adds a test for the item details and totals conversion
  • 🚧 WIP 🚧 Don't forget to upgrade the gobl module here once the changes in the PR above are released

@cavalle cavalle marked this pull request as draft August 29, 2023 12:36
@cavalle cavalle requested a review from samlown August 29, 2023 12:36
@cavalle cavalle changed the title Adapt to the new GOBL Extensions feature Upgrade and adapt to the new GOBL Extensions feature Aug 29, 2023
@@ -0,0 +1,59 @@
package fatturapa_test
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added these tests to cover the preexisting functionality in items.go. I made sure the tests passed in main, before the rest of the changes in this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Top.

},
"sigs": [
"eyJhbGciOiJFUzI1NiIsImtpZCI6ImZmNzU5MTVmLWY2ZjgtNDU4Ny04OTBhLWNjZDhiODZiZjhmNSJ9.eyJ1dWlkIjoiNjc5YTJmMjUtNzQ4My0xMWVjLTk3MjItN2VhMmNiNDM2ZmY2IiwiZGlnIjp7ImFsZyI6InNoYTI1NiIsInZhbCI6ImQzNmM3NGUxOWJmNWYwMDk3NzM4Y2JmNTk3MGZiMjA1NDc5MmU5NDRiMmM3MWMwOWFmMGJjY2I0MmQzZGI1MzYifX0.iivLe0zUAMqlRmN4AJYgUIDhGcyBzYDIBJyTUj0sHBK3axNJC0JDPVKznfPOzShVfO3ILsvbuXxzVo-1sButvQ"
]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the signatures from the test envelopes as they weren't necessary, and rebuilding the files is (marginally) easier without them.

@cavalle cavalle marked this pull request as ready for review August 29, 2023 15:38
@cavalle
Copy link
Contributor Author

cavalle commented Sep 12, 2023

@samlown we left this pending. I think it's safe to merge, what do you think?

@samlown
Copy link
Contributor

samlown commented Sep 21, 2023

@cavalle Sorry! missed this, yes! let's merge. I'll confirm on slack.

Copy link
Contributor

@samlown samlown left a comment

Choose a reason for hiding this comment

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

Looks great!

@@ -0,0 +1,59 @@
package fatturapa_test
Copy link
Contributor

Choose a reason for hiding this comment

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

Top.

@samlown samlown merged commit bdbadf0 into main Sep 21, 2023
@samlown samlown deleted the ext-refactor branch May 14, 2024 08:14
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.

2 participants