-
Notifications
You must be signed in to change notification settings - Fork 12
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
Cannot select with ViraServers #45
Comments
Hello I am glad to hear you are interested. Logging in is always the most fun one. What was the backtick for? Have you tried the dev branch? I just want to clear those up then we can dig in further. |
If you are using the |
You should simply be able to not press the backtick. It is looking for a non existent mark. I will add something in to override the error as I can reproduce it just as easily. For now you should simply be able to not press the backtick. Let me know if that is all it was. I will keep it open to add a patch in to help prevent it for others. |
Also, I assume you are using the cloud service and not a private server? If so make sure you are using the Cloud Password in the readme as you will not use your standard password. Check also with a raw password entry vs the CMD if there is a difference there it should have been fixed or at least added to my VIRA issues. |
I'm using dev branch with an atlassian cloud jira account. i.e. company.atlassian..net for the password I use the token I generated. I will try out suggestions and get back to you/ |
The raw password entry will still be the token just don't use the |
still not working for me. Here is the full steps:
{
"https://company.atlassian.net": {
"username": "my@company.com",
"password": "mysecurepassword",
"skip_cert_verify": true
}
} I tested these credentials using curl they work.
|
Can you tell me which version of the Jira python package you have installed? :python3 Vira.api.connect('https://company.atlassian.net') I have these python packages installed globally
|
@n0v1c3 I figured out the issue. https://github.com/n0v1c3/vira/blob/dev/python/Vira/vira_api.py#L826 # Loop through each project and all versions within
for p in projects:
for v in reversed(self.jira.project_versions(p)):
self.version_percent(p, v) # Add and update the version list
return self.versions # Return the version list When running This isn't respecting the filters. So its taking 30 mins to loop through everything. I set my {
"__default__": {
"server": "https://company.atlassian.net"
},
"vira": {
"template": "__default__",
"issueSort": "status",
"filter": {
"project": "WEB"
}
}
} |
what folder are you in? Vira needs to replaced with that folder name for auto filter. I would start with everything in default or something simple like default /server and assignee. I am guessing you do not have millions in your name as assignee. I will need to relook at it though as we should also have a query limit. |
I will also have a good look at this one as I assume your projects have a lot of versions. When this was created we had to go in a back door and not the nice clean filter on the version side like we do on the project side. |
Enough digging aside shows that I brock it in VIRA-142. I know exactly what is going on and this is now the highest priority. |
Yea it looks like when you call Is your vira JIRA project public? |
Yea the connect is the issue if you comment out the line 183 The real bug is in the function itself. |
This is my I paid 10 dollars for account with JIRA and only have a few left out of my 10 so far. I have also open a couple of the free ones and prepared to transfer this one over with their offer although, my server has now been up for 385 days and it will feel not as important to keep my server running every day. |
The core of the problem is that I will need to make this into a single query the filters are part of the issue but it is also running a query for each project and version. Officially |
I did a push on that branch for the initial login test. It looks to me like the bug will exist in the list of versions as well as create an issue. I can easily remove it from create an issue by simply not listing them at the bottom. The menu is the main objective as we do wish to use them in the create issue window as well in the future. |
I am also curious about how many users you have roughly and if any improvements will need to be maid there. |
Can we load versions / users asynchronously? So I imagine this:
|
https://vi.stackexchange.com/questions/27003/how-to-start-an-async-function-in-vim-8 This is very interesting to me and will create a lot of work for amazing features if it can work. |
I have started there and kept on learning and have my first fake async working. I will write an official push for it and let you know when to give it the first official user trial for me. |
@chinwobble Some pushes have started to come to VIRA-247 I need to do some menu front-end clean up and some confirmation that it is not running way too much on the system. |
I have got the front-end cleaned I need to do some final testing for the single query at a time then I will pass the testing on to you. |
It is now a single query at a time I simply need to clean up the query as there is a mix of projects and versions that will not exist, ie project A has version 1.0.0 and B is only at 0.2.5 A and B will each currently show 1.0.0 and 0.2.5 |
thanks let me know what features you want me to test. |
I am down to "one" bug now. The core of the feature is testable. Using branch VIRA-247
I am most interested in how long it takes for you to get an error message as this tells me how long it takes to query all versions one at a time. How many versions (lines in that menu may be helpful as well) We can also change a variable in Thank you very much! |
Sorry that variable is That is in ms but it also must wait to complete and in line for other tasks that are in line. If you have a lot lot of versions there may be some "stuttering" that I did not see even with test at my larger jobs. |
OK I have got the core fixed with one more thing to learn for vim to make it amazing. Once I made it work properly I did need to change the timer but this is ONLY for thing like "holding" down a key to do multiple thing ie. I was being lazy and held down It is not a huge deal and you wont notice it for most however this is a query and when it gets a turn it takes time. That is when we see that vim is truly NOT async!
|
It is now OFFICIALLY working from my prospective. Once you connect you should have a full list quite quickly and then it will get out of the way of vim by slowing itself down for future updates. (I will still need to work on the 'future updates' idea I have). My work to do.
|
Number of users will also require a similar hacking as we are doing the same thing. There is a line in the python Since it is basically the same issue as this was it is very high priority. |
|
Also I did some testing. Since the code isn't really async and it just something to handle timeouts. import asyncio
async def _get_versions():
print('started')
# fetch from the server
await asyncio.sleep(5)
print('ending')
async def _run_task_with_timeout(func, timeout):
try:
await asyncio.wait_for(func(), timeout)
except asyncio.TimeoutError:
print(f"operation timed out after {timeout} seconds")
async def get_versions(): await _run_task_with_timeout(_get_versions, 2) I tested this logic with |
Do you have deleted projects? I very much like going full async into the python side. The variables were all about to move into python anyways as they have no place in vim other than my initial round. All vim should need to do is check a stable variable from python that updates itself amazingly fast I am sure. Very nice one. Now I have asyncish vim and async python that should be a great combination in the very end of a front end with no async features. |
FYI we do have "long long" term plans that vim is just one front end option for the amazing backend python plugin. This helps expand usage for all. Python will have its core operations with jira code separated completely with the breakdown. Will will then just make our |
And of course the queries should have been 100% background. I will save may secret vim async so that your reports can do live updates for you on the screen. After you have a stable connection of course. |
@chinwobble I have done a decent push on I will be adding the users to that branch as well as I assume that is a similar delay for all larger servers. Once you approve this from your POV I will get it to the dev branch as I know I have more testers there and I will find anything else we should put into this process while in there. |
@n0v1c3 Hm, strange, now I get an error trying to execute UPDATE: Actually, whatever UPDATE2: I tried restarting UPDATE3: My healthcheck is good: |
Yes I had just seen this one after my post last night as I was preparing for a It works fine in vim but not in nvim... That must be a first to have multitasking in vim and not nvim. I had a rough idea of where the issue is just not a clue yet what the issue is. The first couple async functions seem to only be allowed to run once on nvim on my last closer look. I will focus on nvim this evening (Canada time) as once this passes I can spend more time behind the scenes to make it closer to an actual async along with make a big list of everything I want to have async abilities. Ugly tests show these menus and reports will become "live" inside vim. |
There is still a non-async function YET that may cause a small "bounce" ever 2 seconds. I am interested in hearing about that from your perspective. This bounce will be the next attack on the list once nvim passes. It should be a small enough bounce that you will only notice it if you are holding a key down like I do with |
If you comment out the aysnc function and call to it in autoload it should work everywhere but the versions for you. EditI am sure I can stand corrected on that. |
I'm not that comfortable with the code base here, and I've never written a vim plugin myself, but I'll check it out more these days. Now is past my bedtime, so maybe I hear back from you before I get to it. Anyways, thanks for looking into it and sorry for hijacking this issue (i realized late i replied on someone else's issue). |
Above is the core of the issue. I should be able to avoid this should already not be patched however it is crashing when my async array has blank strings in it... I will do a quick test with a letter stamp in the array as a protector if that works it might just be my work around until I give my mind that break. |
Even more important and more to come I am sure. |
The bounciness you see appears to be an issue directly inside how neovim handles multitasking. Let me know if you can see a difference after I get my next push out here. The key will be that vim and neovim cannot handle true multitasking. Also neovim appears to be behind with python/asyncio workarounds for code simplicity. I believe for now this will be the best I am able to do especially with the JQL as the wall I will look closer at neovim and potentially open an issue there about how semi-multi tasking is not handled very well. The vim way of multitasking is essentially the only way it has and I can not tell the difference between python and vim methods for pretending to multitask. |
I will also have a nice gab (2 seconds) for the async tasks untill all things have been completed once then I can slow it down to only update once every (60 secods) this is per single item query. This way once vira has had one inital wave through the reast of its updates can slow way down. This 2 seconds is probably the important part for your quality control test at this point of what I can do for neovim. |
@chinwobble and @maricn, I may as well bring in @mikeboiko as well, I should be far enough with my pushes that I am simply at the endless cleanup but worth a good test as I believe this should make it to the master branch for our larger users as quickly as possible. The key variables to test for a default on the release: Please let me know if |
@n0v1c3 Hey thanks for all your hard work. I just tested
I have an Here is my {
"__default__": {
"server": "https://company.atlassian.net",
"issuesort": "status",
"filter": {
"project": "WEB"
}
},
"vira": {
"template": "__default__",
"issuesort": "status",
"filter": {
"project": "WEB"
}
}
} |
Haha. Changing the OoO has affected our Also. in your config file you should change |
Let me know if there is anything else for this issue or new issues for us to create otherwise I think we can call this one done. I am curious if you did a test with setting the There is also a variable inside |
I would say I have no direct clue in vim. I am guessing we can with "no" problems just like everything in vim and seen in other plugins. I have one override for a plug-in mentioned on the README at the bottom but, not to hide everything on the standard menu. I will open on on my Jira and another new issue here. Keep the challenges coming. |
I think I have prepared enough to close this issue you and I can keep motivating others people by closing this one up and getting this out to master. I may be getting more and more interesting in hoe interested you are in reporting issues to me as we can both clearly see the value of this last problem solve for vim/nvim. I do have some true endless cleanup leaning for this issue however, you will see I am mostly just trying to try it down right now. So you and I can close this on and continue creating more fun endless ones I would have never thought of. (Why would I every make a typo in my list of projects... List of projects I just have more code to build lists and code for me while I sit back and watch a black screen. The only winning competition is the 2 daughters and 1 wife very hard to compete there. I do have one more BIG story but it would need to be a private conversation. |
@chinwobble head up i did confirm to switch the default back to the right side of the screen. This will only affect you if you had nothing in |
For me I noticed the UI is quite slow. When I jump from top of screen to bottom of screen |
You should be able to set your |
If you are not worried too much about lots of version filters other filters will but versions into your logs slowly and you can also slow them right down. EditIf you slow it way down and open an issue you will see. |
Hey this looks like a really cool plugin.
I've read the entire readme.md but I cannot find how to browse jira issues.
I've created the two json files and tested my username and token are working properly.
I've created the following files according to
#41
I have installed the python dependencies and I have python3 and python in my enviornment paht.
I'm using ubuntu 20.04 in WSL
Here's what I have tried:
:ViraServers
https://bob.atlassian.net/
and press ` (backtick)The text was updated successfully, but these errors were encountered: