-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix/1632/reset street layout global config #1633
Fix/1632/reset street layout global config #1633
Conversation
…log layout improvement, code refactoring
…ibornWolff/codecharta into feature/905/street-map-layout
…' into fix/1632/reset-street-layout-global-config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just modified the comment
This does not yet fix our flaky e2e tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit surprised that we reformat our changelog all the time. How could we guarantee this does not happen anymore? :-)
CHANGELOG.md
Outdated
|
||
- Global settings not reverting to default ones ([#1632](https://github.com/MaibornWolff/codecharta/issues/1632)) | ||
- Maximum treemap files shown in squarified node ([#1624](https://github.com/MaibornWolff/codecharta/issues/1624)) | ||
- Fixed kotlin test ([#1322](https://github.com/MaibornWolff/codecharta/issues/1322)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part should not be relevant for our customers. Therefore it's something we could in theory mention in "Chore" but I prefer not to add it at all.
- Fixed kotlin test ([#1322](https://github.com/MaibornWolff/codecharta/issues/1322)) |
private fun isFirstOrSecondWeek(kalenderWeeknWeek: Int): Boolean { | ||
return kalenderWeeknWeek <= 2 | ||
private fun isFirstOrSecondWeek(calendarWeek: Int): Boolean { | ||
return calendarWeek <= 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
.with(WeekFields.ISO.weekOfWeekBasedYear(), week.toLong()) | ||
.with(WeekFields.ISO.dayOfWeek(), 1) | ||
.withHour(12).withMinute(0).withSecond(0).withNano(0) | ||
.withOffsetSameInstant(ZoneOffset.UTC) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not immediately obvious what this does. I suggest to add a short comment what this tries to solve :-)
@@ -117,6 +117,7 @@ export class CodeMapLabelService implements CameraChangeSubscriber { | |||
} | |||
} | |||
|
|||
// TODO Add a test to ensure that scaling is not additive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be unrelated?
} | ||
|
||
private fun getWeekDate(year: Int, week: Int): OffsetDateTime? { | ||
// returns the date of Monday based on the week and year |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Optional] I like to have longer variable names like getDateOfWeeksMonday
instead of comments, which tend to rotten 😇 Guess that would also meet @BridgeAR wish for a comment.
// expect-puppeteer toClick timeout does not work it might be the reason of flaky tests, | ||
// changed default options globally | ||
// [toClick issue](https://github.com/smooth-code/jest-puppeteer/issues/202) | ||
setDefaultOptions({ timeout: 6000 }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have always a bad feeling with huge default timeouts 😟 But if it is necessary this shouldn't be a blocker
Reset layout option and street map max files in global settings
closes #1632
closes #1624
Description
GIVEN a user has opened the global config
WHEN modifying the layout or the street layout maximum treemap files, then resetting the global configuration
THEN layout and max treemap files options should revert to default values.
thuis PR closes this issue.