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

Does not work for servers with negative timezone offset #12

Closed
rjc570 opened this issue Jan 31, 2018 · 16 comments
Closed

Does not work for servers with negative timezone offset #12

rjc570 opened this issue Jan 31, 2018 · 16 comments

Comments

@rjc570
Copy link

rjc570 commented Jan 31, 2018

Should it work immediately after installation? Do data ware house jobs need to run to pull the data? I am not seeing any errors in the ccm.log file or in the browser developer window. I just get a blank box.
screen shot 2018-01-31 at 3 07 31 pm
screen shot 2018-01-31 at 3 07 59 pm
screen shot 2018-01-31 at 3 10 46 pm

screen shot 2018-01-31 at 3 13 56 pm

@schneigu
Copy link
Member

It should work immidiatly. DW is not involved. Data are from live DB.

@rjc570
Copy link
Author

rjc570 commented Feb 1, 2018

Is there some debugging technique I can use to troubleshoot?

@rjc570
Copy link
Author

rjc570 commented Feb 2, 2018

Should it say "Not Available" in the editor presentation when I am adding it?
screen shot 2018-02-02 at 9 45 06 am

I have also checked the deployment logs and it seems it has deployed ok.
screen shot 2018-02-02 at 9 47 01 am

@innerjoin
Copy link
Contributor

@rjc570 Thank you for reaching out to us and please excuse my late reply

We have been running the Status History on RTC 6.0.4 for quite a while, the log file excerpt posted by you is looking good and also the setup looks fine to me. It's ok that it says "not available" while adding the presentation (although I would like to know how I can change that label, but that's another story).

One important thing to know is that the status history only shows data if you have saved the work item you are viewing at least once, so I mean that as long as the History tab in RTC does not have any entry, the status history presentation will be a blank box.

To be able to help you to get this up and running, could you check the following:

  • One thing that caught my eye is that you seem to be using Mac, so may I ask you what browser are you using? Safari?
  • Regarding the debugging technique: Could you open the developer tools of your web browser (typically, this can be done by hitting F12) and check out whether there is an ERROR in the console view?

@innerjoin
Copy link
Contributor

@rjc570 Have you had the chance to look into this again?

@rjc570
Copy link
Author

rjc570 commented Feb 23, 2018

Yes. It is still not working. I have tried it on a colleagues windows computer using different browsers. As well I have tried it with Firefox and Chrome on my Mac. Here are some screenshots.
screen shot 2018-02-23 at 8 39 17 am
screen shot 2018-02-23 at 8 40 15 am

@innerjoin
Copy link
Contributor

@rjc570 To be honest, I have no clue why this is not working

@mab447
Copy link

mab447 commented Aug 6, 2018

I'm not sure this is related, but the plugin did not work for us either. It looks to be a locale issue. The modified time, match expression, was using a '+' instead of a '-' for the last 4 digits. When I changed this everything worked as it should. The match filter is in Presentation.js in the createStateHistory function. I used RESTClient to run the GET on the workitem history and see what our date format looked like (which did not have a + in it).

@rjc570
Copy link
Author

rjc570 commented Aug 6, 2018

Where did you find this file, Presentation.js, to change? I did a search in my server directory and could not find it.

@mab447
Copy link

mab447 commented Aug 6, 2018

It's a file inside the Plugins JAR file.
you'll have to open the jar file in the Plugins folder, make the edit, and update the file in the jar or repackage the jar. Once you open the plugin, you'll find the file in the /resources/ui folder.

@rjc570
Copy link
Author

rjc570 commented Aug 6, 2018

Is this the line you modified?
var exp = /(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}\+\d{2})(\d{2})/;

@mab447
Copy link

mab447 commented Aug 6, 2018

yes, for my server the format was:
var exp = /(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}-\d{2})(\d{2})/;

You should check the format on your server before changing the code, the request in that function is what returns the modified time for each state change in history. (the base URL is https://server:port/ccm/)

@innerjoin
Copy link
Contributor

@mab447 Thank you so much for your help. This seems to be the root cause and I was able to reproduce thiss on my side for servers with a negative time zone offset. I will attach a bugfix and create a new, patched release of it.

@innerjoin innerjoin changed the title Does not work with RTC 6.0.4 Does not work for servers with negative timezone offset Aug 8, 2018
@innerjoin innerjoin added the bug label Aug 8, 2018
@innerjoin
Copy link
Contributor

@rjc570 and @mab447: Please try Version 2.2.5 and let me know if this solves your issue.

@rjc570
Copy link
Author

rjc570 commented Aug 9, 2018

I can confirm version 2.2.5 is working. Thanks for all the efforts.

@innerjoin
Copy link
Contributor

Great, good to hear that :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants