Skip to content

RPCAPI apply new methods in code, scripts and tests#1083

Merged
7 commits merged into
developfrom
unknown repository
Mar 9, 2023
Merged

RPCAPI apply new methods in code, scripts and tests#1083
7 commits merged into
developfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Feb 24, 2023

Copy link
Copy Markdown

Purpose

Second stage in the update of the RPCAPI methods. This PR updates the code and tests to use the new methods from #1054.

Context

Follow up #1054

Changes

  • Scripts
  • Unit tests
  • Deprecate RPCAPI.enable_add_api_user and RPCAPI.enable_add_batch_job properties in the INI file. Emit warning if used.
  • Add unit tests
  • Documentation

How to test this PR

Unit tests should pass.

@ghost ghost added this to the v2023.1 milestone Feb 24, 2023
@matsduf

matsduf commented Feb 24, 2023

Copy link
Copy Markdown
Contributor

Is this a "V-Minor" or "V-Major"? I guess it depends on if zmb is seen to be part of the API or not.

@ghost

ghost commented Feb 27, 2023

Copy link
Copy Markdown
Author

Is this a "V-Minor" or "V-Major"? I guess it depends on if zmb is seen to be part of the API or not.

I'd say "V-Minor". zmb explicitly states:

This interface is unstable and will change in a future release.

So I don't think it's part of the API yet.

@ghost ghost added the V-Minor Versioning: The change gives an update of minor in version. label Feb 27, 2023
Comment thread docs/API.md
Comment thread docs/API.md Outdated
@matsduf

matsduf commented Feb 27, 2023

Copy link
Copy Markdown
Contributor

I'd say "V-Minor". zmb explicitly states:

This interface is unstable and will change in a future release.

That is true.

It is time to make the interface of zmb stable (in a different PR).

Alexandre Pion added 6 commits February 27, 2023 17:44
`RPCAPI.enable_add_api_user` and `RPCAPI.enable_add_batch_job`

* remove properties from confi INI file
* emit warning if the property is set in the INI file
Comment thread docs/API.md
Comment thread docs/API.md Outdated
@ghost ghost requested a review from matsduf March 1, 2023 11:23

@matsduf matsduf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be fine now.

@ghost ghost merged commit e161b7a into zonemaster:develop Mar 9, 2023
@ghost ghost deleted the rpcapi-apply-new-methods branch March 9, 2023 11:31
@ghost ghost mentioned this pull request Mar 13, 2023
@mattias-p

Copy link
Copy Markdown
Member

I've tested this and found the problems also reported in #1105. With the changes in #1109 this works as advertised.

I also created zonemaster/zonemaster#1159 based on what I learned testing this.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

V-Minor Versioning: The change gives an update of minor in version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants