Skip to content

Conversation

@Kokan
Copy link
Contributor

@Kokan Kokan commented Dec 17, 2017

A new offline label feature for github module.
If the request toward github is not successfull,
now it is possible to change the displayed value via
format-offline which works as the same way as format.

A new offline label feature for github module.
If the request toward github is not successfull,
now it is possible to change the displayed value via
format-offline which works as the same way as format.

Signed-off-by: kokan <peter.kokai@balabit.com>
@patrick96 patrick96 self-assigned this Dec 27, 2017
@patrick96
Copy link
Member

Looks good. Will do some testing in the next few days, but I think this is ready to merge

@patrick96 patrick96 added this to the 3.2.0 milestone Jan 7, 2018
@Kokan
Copy link
Contributor Author

Kokan commented Jan 10, 2018

I am using it since and I had no issue with it (This patch also applied: #911).
@patrick96 Did you have time to check it ?

@patrick96
Copy link
Member

Sorry, I didn't have time yet. I'll try to get to it soon

Copy link
Member

@patrick96 patrick96 left a comment

Choose a reason for hiding this comment

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

There is a segmentation fault at line 103, whenever format-offline is either not specified or does not contain <label-offline>

@Kokan
Copy link
Contributor Author

Kokan commented Feb 15, 2018

Thanks for the feedback, I'll try to debug it later this week.

@patrick96 patrick96 modified the milestones: 3.2.0, 3.3.0 Jul 22, 2018
@patrick96 patrick96 modified the milestones: 3.3.0, 3.4.0 Oct 8, 2018
@patrick96
Copy link
Member

Hey @Kokan do you still plan on working on this? If not, we can add it to our own backlog and fix the last issue ourselves, I don't think it would be too bad.

@Kokan
Copy link
Contributor Author

Kokan commented Nov 12, 2018

I do not think I am going to fix it soon, as I am not using currently polybar.

@patrick96
Copy link
Member

Alright. We'll try to finish this when we get time for it.

@kronn
Copy link
Contributor

kronn commented Dec 3, 2018

@patrick96 I tried to debug this and cannot reproduce the segfault anymore after rebasing onto current master.

If format-offline is not specified at all, it defaults to an empty string (or so), but creates the module.
If format-offline does not contain <label-offline> but <label> it errors out of the module-creation with error: Disabling module "github" (reason: <label> is not a valid format tag for "format-offline").
A string without tokens is (as expected) taken as is without complaint.

I for one think this is sane behaviour and in working condition after a rebase.

@patrick96
Copy link
Member

patrick96 commented Dec 3, 2018

Hey @kronn, I just did a rebase and recompiled and am still getting the segfault.

Here is the config I used:

[bar/example]
modules-left = gh

[module/gh]
type = internal/github

token = 

EDIT: The behavior you described is indeed sane were it not for the segfault ;)

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