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

Add more "teams" endpoints. #192

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

fangebee
Copy link

Hi, I've implemented the following missing function for managing Rocketchat Teams, I thought I would share this work, even if some endpoints are still missing.

@sonarcloud
Copy link

sonarcloud bot commented Nov 28, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Merging #192 (57242f2) into master (1d021ac) will decrease coverage by 1.15%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##           master     #192      +/-   ##
==========================================
- Coverage   97.70%   96.56%   -1.15%     
==========================================
  Files          39       39              
  Lines        1614     1776     +162     
  Branches      110      135      +25     
==========================================
+ Hits         1577     1715     +138     
- Misses         30       46      +16     
- Partials        7       15       +8     
Impacted Files Coverage Δ
rocketchat_API/APISections/teams.py 66.15% <63.93%> (-33.85%) ⬇️
tests/test_teams.py 98.16% <98.13%> (-1.84%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jadolg
Copy link
Owner

jadolg commented Nov 28, 2022

Hi @fangebee 👋
Thank you very much for your contribution.
Would you mind adding tests for these methods and fixing the issues detected by Codacy and Deepsource?

@s0nders
Copy link

s0nders commented Jan 11, 2023

Any chance to have this merged in soon? Would be very helpful for a project im working on, thanks!

@jadolg
Copy link
Owner

jadolg commented Jan 13, 2023

Any chance to have this merged in soon? Would be very helpful for a project im working on, thanks!

This PR is not ready for merging yet. I don't know if @fangebee plans to continue working on it.

@fangebee
Copy link
Author

I just found how to have docker + pytest working. I'll try to finish this before sunday.

jadolg and others added 5 commits January 18, 2023 13:48
looks like the setup action does not work correctly with the latest ubuntu runner. See actions/setup-python#543 for more information.
Bumps [isbang/compose-action](https://github.com/isbang/compose-action) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/isbang/compose-action/releases)
- [Commits](hoverkraft-tech/compose-action@v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: isbang/compose-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@sonarcloud
Copy link

sonarcloud bot commented Jan 18, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
7.4% 7.4% Duplication

@fangebee
Copy link
Author

Hi, I finally wrote the missing tests and fixed some issues detected by deepsource.
Can you run CodeCov again? I don't know how to do this by myself.

SonarCloud complains about code duplication, but I think it's ok to duplicate code in automated tests. Correct me if I'm wrong.

@jadolg
Copy link
Owner

jadolg commented Jan 18, 2023

The duplication Sonar is complaining about is not on the tests but on the code.
The "team_id or team_name required" message repeats for 8 exceptions.
This could be extracted into a constant.

It looks like codecov is still failing. Do you have access to the test report?

From what I can see, it's mostly about not-covered paths.
For instance. In this example, there are several untested paths.
image

@fangebee
Copy link
Author

OK, I found the place to view CodeCov reports: https://app.codecov.io/gh/jadolg/rocketchat_API/pull/192
I'll do the necessary to fix those when I have time this week.

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

3 participants