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

Little improvements #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Little improvements #15

wants to merge 1 commit into from

Conversation

kubantjan
Copy link
Member

No description provided.


if len(project_candidates) == 1:
return project_candidates[0]
raise ValueError(f"project {project_name} not found or multiple projects with same name found")
Copy link
Contributor

Choose a reason for hiding this comment

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

Tohle bych rozdelil na dve chyby.

Copy link
Member Author

Choose a reason for hiding this comment

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

No jasně ale tak jako ten kód na spoustu větších problémů tak zas další if se mi řešit nechtěl.

@@ -669,7 +673,7 @@ def addEntry(self, start, description, projectName, userMail, workspace,
url = self.url + "/workspaces/%s/time-entries" % wsId

if projectName != None:
projectId = self.getProjectID(projectName, workspace, skipPrjQuery=self._syncProjects)
projectId = self.get_project_id(projectName, workspace, skip_prj_query=self._syncProjects)
Copy link
Contributor

Choose a reason for hiding this comment

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

Proc neni _syncProjects take prejmenvoana?

Copy link
Member Author

Choose a reason for hiding this comment

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

protoze je toho k prejmenovani milion :D asi bych

@@ -795,7 +799,7 @@ def getTimeEntryForUser(self, userMail, workspace, description,

def archiveProject(self, projectName, workspace, skipPrjQuery=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

tady skipPrjQuery a projectName nejsou moc Python style

Copy link
Member Author

Choose a reason for hiding this comment

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

Jako souhlas jen jsem začal pomalu přejmenovat a nechtělo se mi to dělat celý na to teď nemám čas

@kubantjan
Copy link
Member Author

@marazt diky za review, ale fakt bych ted ty codestyles moc nehrotil a spis mrkni jen na tu logiku, to je jinak tak na 2 hodiny to vsechno prejmenovat a uklidit..

@kubantjan kubantjan requested a review from marazt February 16, 2023 10:21
billable = True
elif 'non-billable' in tags:
billable = False
else:
Copy link
Member

Choose a reason for hiding this comment

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

hele to bych nedelal, podle me kdyz tam neni explicitne billable tag, tak to chceme jako non-billable. Respektive, ja toggle takhle pouzivam...

Copy link
Member Author

Choose a reason for hiding this comment

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

no takhle funguje clockify, ze kdyz je projekt jako celek neco tak podle toho se urci default.

ja takhle jsem zvyklej a dost mi to dava smysl, pro me je opruz pridavat furt billable vsude a prave mi vyhovuje ze vyuzivam toho, co je default na danym projektu.

ono je problem ze ty v podstate nikdy billable veci nemas, kdezto ja sem tam jo. Rekl bych ze aby obecne byl ten tool uzitecnej pro prumernyho mild blue cloveka, tak je moje reseni lepsi.

Ale pro tebe konkretne mozna chces mit ten case ze by default je vsechno non-billable i na billable projektech.

Tak tam asi muzeme pridat nejaky flag do configu no :D.

@kubantjan kubantjan requested a review from tomaskourim March 17, 2023 09:14
@kubantjan kubantjan force-pushed the little-improvements branch from 154be9e to f7712b4 Compare July 1, 2024 10:06
…ased on project property. And couple of renamings.
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.

3 participants