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

docs: Add missing KDocs in all modules except core and dao #1876

Merged
merged 8 commits into from
Oct 16, 2023

Conversation

bog-walk
Copy link
Member

@bog-walk bog-walk commented Oct 5, 2023

All public API elements now show a KDoc when hovered over by a mouse in IDE or when a Quick Documentation shortcut is used (F1 | Ctrl+Q).

EXCEPT: (this PR is already quite large, so these each will need their own)

  • exposed-core
  • exposed-dao

Each commit covers a single module, so changes can be split if preferred.

@bog-walk bog-walk requested a review from e5l October 5, 2023 22:10
@@ -81,6 +81,9 @@ internal fun dateTimeWithFractionFormat(fraction: Int): DateTimeFormatter {
@Suppress("MagicNumber")
internal val LocalDate.millis get() = atStartOfDay(ZoneId.systemDefault()).toEpochSecond() * 1000

/**
* Column for storing dates.
Copy link
Member

Choose a reason for hiding this comment

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

It would be great to refer to the underlying type. There are lots of date types, and it's easy to confuse. Somewhere it also would be great to mention about precision

Copy link
Member Author

Choose a reason for hiding this comment

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

@e5l To clarify about precision:

Do you mean the milli-/nano- second precision used to store a date/time value internally?
Or the precision of the specific formatters used by Exposed to log the values?

Add KDocs to exposed-money
Add KDocs to exposed-crypt
Add KDocs to exposed-jodatime
Add KDocs to exposed-java-time
Add KDocs to exposed-kotlin-datetime
Add KDocs to exposed-spring-boot-starter & spring-transaction
Add KDocs to exposed-jdbc
Add applicable samples where possible.

Adjust KDocs on class properties that don't return.

Refactor description of spring boot DatabaseInitializer.
fun `test encryptedColumnType with a string`() {
fun testEncryptedColumnTypeWithAString() {
Copy link
Member Author

Choose a reason for hiding this comment

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

To use the contents of this test as a sample, the name format has to be changed, since KDocs can't reference a function with spaces: KTIJ-21878.

@bog-walk bog-walk requested a review from e5l October 12, 2023 02:47
Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

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

lgtm

@bog-walk bog-walk merged commit 66ae127 into main Oct 16, 2023
5 checks passed
@bog-walk bog-walk deleted the bog-walk/add-missing-kdocs branch October 16, 2023 13:17
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