Add new resources, part 6/7.

Review Request #14379 — Created March 20, 2025 and updated

Information

RBTools
master

Reviewers

This change adds the following new resource implementations:
- APITokenItemResource
- APITokenListResource
- HostingServiceAccountItemResource
- HostingServiceAccountListResource
- HostingServiceItemResource
- HostingServiceListResource
- PlainTextResource (used for original/patched files)
- RemoteRepositoryItemResource
- RemoteRepositoryListResource
- SearchResource
- SessionResource

  • Ran unit tests.
  • Used the new resources from a test script and saw that everything
    worked as expected.
Summary ID
Add new resources, part 6/7.
This change adds the following new resource implementations: - APITokenItemResource - APITokenListResource - HostingServiceAccountItemResource - HostingServiceAccountListResource - HostingServiceItemResource - HostingServiceListResource - PlainTextResource (used for original/patched files) - RemoteRepositoryItemResource - RemoteRepositoryListResource - SearchResource - SessionResource Testing Done: - Ran unit tests. - Used the new resources from a test script and saw that everything worked as expected.
34900ae82c7c7f78221548a959d6c6e3f9c353d6
Description From Last Updated

I feel like we should explain why this may be None.

chipx86chipx86

I think this should be "... are supported" or something. "available" may indicate presence.

chipx86chipx86

Missing period.

chipx86chipx86

Maybe say "from a diff" so it's clear this isn't a file attachment or in a repository. Same below.

chipx86chipx86

We should specify the version range. Same below.

chipx86chipx86

Should say "List resource"

maubinmaubin
There are no open issues
chipx86
  1. 
      
  2. rbtools/api/resource/api_token.py (Diff revision 1)
     
     
    Show all issues

    I feel like we should explain why this may be None.

  3. rbtools/api/resource/hosting_service.py (Diff revision 1)
     
     
    Show all issues

    I think this should be "... are supported" or something. "available" may indicate presence.

  4. Show all issues

    Missing period.

  5. rbtools/api/resource/root.py (Diff revision 1)
     
     
    Show all issues

    Maybe say "from a diff" so it's clear this isn't a file attachment or in a repository.

    Same below.

  6. rbtools/api/resource/root.py (Diff revision 1)
     
     
    Show all issues

    We should specify the version range. Same below.

  7. 
      
david
maubin
  1. 
      
  2. Show all issues

    Should say "List resource"

  3. 
      
david
Review request changed
Commits:
Summary ID
Add new resources, part 6/7.
This change adds the following new resource implementations: - APITokenItemResource - APITokenListResource - HostingServiceAccountItemResource - HostingServiceAccountListResource - HostingServiceItemResource - HostingServiceListResource - PlainTextResource (used for original/patched files) - RemoteRepositoryItemResource - RemoteRepositoryListResource - SearchResource - SessionResource Testing Done: - Ran unit tests. - Used the new resources from a test script and saw that everything worked as expected.
e64bf637faca1caf26804a0cb9c3f6f6e1c6034d
Add new resources, part 6/7.
This change adds the following new resource implementations: - APITokenItemResource - APITokenListResource - HostingServiceAccountItemResource - HostingServiceAccountListResource - HostingServiceItemResource - HostingServiceListResource - PlainTextResource (used for original/patched files) - RemoteRepositoryItemResource - RemoteRepositoryListResource - SearchResource - SessionResource Testing Done: - Ran unit tests. - Used the new resources from a test script and saw that everything worked as expected.
34900ae82c7c7f78221548a959d6c6e3f9c353d6
Diff:

Revision 3 (+2254 -8)

Show changes

rbtools/api/resource/__init__.py
rbtools/api/resource/api_token.py
rbtools/api/resource/file_diff.py
rbtools/api/resource/hosting_service.py
rbtools/api/resource/hosting_service_account.py
rbtools/api/resource/plain_text.py
rbtools/api/resource/remote_repository.py
rbtools/api/resource/root.py
3 more

Checks run (2 succeeded)

flake8 passed.
JSHint passed.
Loading...