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: rename type to AnalyticStatsDto #1393

Merged
merged 3 commits into from
Mar 17, 2021
Merged

Conversation

liangyuanruo
Copy link
Contributor

@liangyuanruo liangyuanruo commented Mar 16, 2021

It just occurred to me that AnalyticStats was in fact a data transfer object that presents a specific data format to the client, so I renamed it. I'm leaving the file in /types/analytics instead of /shared so that the cleanup can happen all in one go in a future PR.

@liangyuanruo liangyuanruo requested a review from tshuli March 16, 2021 09:58
src/types/analytics.ts Outdated Show resolved Hide resolved
src/types/analytics.ts Outdated Show resolved Hide resolved
@liangyuanruo liangyuanruo requested a review from karrui March 16, 2021 10:51
Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

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

lgtm

src/public/services/AnalyticsService.ts Outdated Show resolved Hide resolved
@@ -1,4 +1,4 @@
export type AnalyticStats = {
export type AnalyticStatsDto = {
Copy link
Contributor

Choose a reason for hiding this comment

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

should DTOs live in a shared folder like shared/typings? No big deal for now, probably can do a cleanup in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, i think they can live in e.g. shared/types/analytics/dto. this will be a big reorganisation, so I'm not keen to do it now and break everyone's imports.

@karrui karrui changed the title refactor: rename type to AnalyticStatsDTO refactor: rename type to AnalyticStatsDto Mar 16, 2021
@liangyuanruo liangyuanruo merged commit fe64631 into develop Mar 17, 2021
@liangyuanruo liangyuanruo deleted the refactor/walk-the-talk branch March 17, 2021 03:17
@karrui karrui mentioned this pull request Mar 23, 2021
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.

3 participants