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

moira_2.0_support (#2) #3

Merged
merged 5 commits into from
Dec 6, 2017
Merged

moira_2.0_support (#2) #3

merged 5 commits into from
Dec 6, 2017

Conversation

kamaev
Copy link
Contributor

@kamaev kamaev commented Nov 6, 2017

  • Added custom headers support
  • Added trigger creation by custom id
  • Removed tags extra data addition feature
  • Changed ttl type from string to int
  • Optimized fetch_by_id for large production solutions

* moira_2.0_fixes_0

* moira_2.0_fixes_1

* moira_2.0_fixes_0_doc

* moira_2.0_fixes_3

* moira_2.0_fixes_4

* moira_2.0_fixes_5

* moira_2.0_fixes_6

* moira_2.0_fixes_6

* moira_2.0_fixes_7

* moira_2.0_fixes_7

* moira_2.0_fixes_8

* moira_2.0_fixes_9

* moira_2.0_fixes_1_doc

* moira_2.0_fixes_10

* moira_2.0_fixes_1_tags

* moira_2.0_fixes_2_doc

* moira_2.0_fixes_3_doc

* moira_2.0_fixes_4_doc
@kamaev kamaev requested a review from beevee November 6, 2017 10:21
better example for id field usage
@kamaev
Copy link
Contributor Author

kamaev commented Nov 6, 2017

Ready for review

@@ -40,7 +40,7 @@ def __init__(self, api_url, login=None, auth_user=None, auth_pass=None):
if auth_user and auth_pass:
self.auth = HTTPBasicAuth(auth_user, auth_pass)

self.auth_header = {'X-Webauth-User': login}
Copy link
Member

Choose a reason for hiding this comment

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

А какая причина у этого изменения? У нас же захардкожено в API имя этого заголовка, его нельзя поменять.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Исправил

:param ttl_state: str state after ttl seconds without data (one of STATE_* constants)
:param sched: dict schedule for trigger
:param expression: str python expression
:param expression: str golang expression
Copy link
Member

Choose a reason for hiding this comment

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

Тут C-like expression лучше написать.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Исправил

:param ttl_state: str state after ttl seconds without data (one of STATE_* constants)
:param sched: dict schedule for trigger
:param expression: str python expression
:param expression: str golang expression
Copy link
Member

Choose a reason for hiding this comment

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

Тут тоже.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Исправил

@kamaev kamaev merged commit b9cd1c6 into master Dec 6, 2017
androndo pushed a commit to androndo/python-moira-client that referenced this pull request Mar 4, 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.

None yet

2 participants