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

Update the default config as document #923

Merged
merged 4 commits into from
May 21, 2024

Conversation

thachlp
Copy link
Member

@thachlp thachlp commented Feb 25, 2024

Motivation
When I try to learn the centraldogma via document, I see that the default config of the source code is missing two properties from the document https://line.github.io/centraldogma/setup-configuration.html
So I create this pr.

Copy link

codecov bot commented Feb 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.77%. Comparing base (ac1e8c1) to head (7183066).
Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #923      +/-   ##
============================================
- Coverage     66.78%   66.77%   -0.01%     
+ Complexity     3513     3512       -1     
============================================
  Files           370      370              
  Lines         14476    14476              
  Branches       1553     1553              
============================================
- Hits           9668     9667       -1     
- Misses         3929     3930       +1     
  Partials        879      879              

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

@@ -28,14 +28,18 @@
},
"webAppEnabled": true,
"webAppTitle": null,
"mirroringEnabled": null,
"mirroringEnabled": true,
"numMirroringThreads": null,
"maxNumFilesPerMirror": null,
"maxNumBytesPerMirror": null,
"replication": {
"method": "NONE"
},
"csrfTokenRequiredForThrift": null,
Copy link

Choose a reason for hiding this comment

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

I see this field csrfTokenRequiredForThrift in default config but not in documentation. Also the default configuration missing cors field

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. I added the cors field.

@@ -28,14 +28,19 @@
},
"webAppEnabled": true,
"webAppTitle": null,
"mirroringEnabled": null,
"mirroringEnabled": true,
Copy link
Member

Choose a reason for hiding this comment

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

Could you please explain the rationale behind this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

I see in the documentation:
image

Copy link
Member

Choose a reason for hiding this comment

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

Oops, I didn't notice that. 😓 Thanks!

Copy link
Member

@minwoox minwoox left a comment

Choose a reason for hiding this comment

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

Great! Thanks a lot, @thachlp!

@thachlp thachlp closed this Feb 27, 2024
@thachlp thachlp deleted the update-config-as-document branch February 27, 2024 03:33
@thachlp thachlp restored the update-config-as-document branch February 27, 2024 03:35
@thachlp thachlp reopened this Feb 27, 2024
Comment on lines 38 to 41
"writeQuotaPerRepository": {
"requestQuota": 5,
"timeWindowSeconds": 1
},
Copy link
Contributor

@ikhoon ikhoon Feb 29, 2024

Choose a reason for hiding this comment

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

I don't think this writeQuotaPerRepository is a sensible default.
Instead, what do you think of removing the settings in

"writeQuotaPerRepository": {
"requestQuota": 5,
"timeWindowSeconds": 1
},

; and set to null?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hi @ikhoon, from my view as a user, I think it is better to keep the documentation because it is easy to understand to set specific quotas. I should update this config to null.
Is it good?

Copy link
Member

Choose a reason for hiding this comment

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

@ikhoon Any thought? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

We haven't fully verified the feature yet. Let's keep it null.

Copy link
Member

Choose a reason for hiding this comment

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

Then, @thachlp Please set this to null as @ikhoon suggested. 🙇

"writeQuotaPerRepository": {
"requestQuota": 5,
"timeWindowSeconds": 1
},

@thachlp thachlp requested a review from hmhuan February 29, 2024 10:05
Copy link
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for the cleanup @thachlp 🙇 👍 🙇

@minwoox minwoox merged commit 4f86c3d into line:main May 21, 2024
11 checks passed
@minwoox
Copy link
Member

minwoox commented May 21, 2024

@thachlp 👍 👍 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants