Skip to content

Conversation

@harminius
Copy link
Contributor

@coveralls
Copy link

coveralls commented Jan 14, 2026

Pull Request Test Coverage Report for Build 21023258346

Details

  • 78 of 82 (95.12%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 94.369%

Changes Missing Coverage Covered Lines Changed/Added Lines %
server/mergin/sync/public_api_v2_controller.py 17 21 80.95%
Totals Coverage Status
Change from base Build 20922162384: 0.005%
Covered Lines: 8094
Relevant Lines: 8577

💛 - Coveralls

from sqlalchemy.exc import IntegrityError
import pytest
from datetime import datetime, timedelta, timezone
import json
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

json lib is useful for loading response data
resp_data = json.loads(resp.data)
you can examine the response in debug mode - without saving the response to the variable I see a loading values for the object in my IDE, which is inconvenient.

return True

if permissions == "read":
if permissions == "guest":
Copy link
Collaborator

Choose a reason for hiding this comment

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

why this? This could not affect rest of endpoints?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMO it should be there there in oder to be able to share a specific project with a user when all global roles are disabled
in that case, the user is a guest, and without this update, this method will return false, and the access would be refused

yes, need to be careful about this, I can double-check the implementations of this method

format: date-time
description: File modification timestamp
example: 2024-11-19T13:50:00Z
ProjectDetail:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need new ProjectDetail?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's Project with files

  • in the list project endpoint I want to return Project without files so I separated those two

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.

4 participants