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

refactor: Introduce Value[A] and extract tapir and zio-json codecs #2996

Merged
merged 26 commits into from
Jan 19, 2024

Conversation

seakayone
Copy link
Collaborator

@seakayone seakayone commented Jan 17, 2024

Pull Request Checklist

Task Description/Number

  • Introduces the Value trait for all of our value classes to be based on.
  • Introduces the WithFrom trait which respective companion objects may use for adding an unsafeFrom factory method.
  • Adds type aliases for String and Boolean values, we can add more once we need them.
  • Removes zio.json and sttp.tapir dependencies for KnoraProject and releated value classes and moves these to …admin.api.Codecs
  • Replaces Validation return types in all factory methods of KnoraProject value classes with a simple Either[String, A]
  • Renames AssetPermissionResponder to AssetPermissionsResponder

PR Type

  • build/chore: maintenance tasks (no production code change)
  • docs: documentation changes (no production code change)
  • feat: represents new features
  • fix: represents bug fixes
  • perf: performance improvements
  • refactor: represents production code refactoring
  • test: adding or refactoring tests (no production code change)

Basic requirements for bug fixes and features

  • Tests for the changes have been added
  • Docs have been added / updated

Does this PR introduce a breaking change?

  • Yes

Does this PR change client-test-data?

  • Yes

@seakayone seakayone changed the base branch from main to refactor/migrate-admin-files-to-tapir January 17, 2024 16:46
Copy link

codecov bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (eac5751) 11.74% compared to head (1122c4e) 88.58%.
Report is 23 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2996       +/-   ##
===========================================
+ Coverage   11.74%   88.58%   +76.84%     
===========================================
  Files         246      259       +13     
  Lines       22907    23084      +177     
===========================================
+ Hits         2690    20449    +17759     
+ Misses      20217     2635    -17582     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@seakayone seakayone changed the title refactor: Introduce Value[A] and derive companion object with codecs for StringValues refactor: Introduce Value[A] and extract tapir and zio-json codecs Jan 17, 2024
Base automatically changed from refactor/migrate-admin-files-to-tapir to main January 18, 2024 08:14
…l value which is by definition of the shortnameRegex already SPARQL safe.
@seakayone seakayone marked this pull request as ready for review January 18, 2024 12:14
Copy link
Collaborator

@mpro7 mpro7 left a comment

Choose a reason for hiding this comment

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

LGTM.

@seakayone seakayone merged commit 9744f7b into main Jan 19, 2024
13 checks passed
@seakayone seakayone deleted the derive-codecs branch January 19, 2024 08:48
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.

None yet

2 participants