-
Notifications
You must be signed in to change notification settings - Fork 10
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
In Eclipse IDE "Eclipse Open" interval does not have "ide" field #191
Comments
Just reuse your existing PR :-) |
Good catch! |
Okay. Don't merge it yet, I'll probably have something more to add :) |
This bug occured again, with introduction of silent registration. Upcoming fix will solve it once and for all by initializing it before any plugin activity is started. |
@Inventitech I've checked. All intervals (only 23) without "ide" field (in version 1.5.0) belong to 4 different users. All of them later on have intervals belonging to Eclipse. Thus, this bug only happened in Eclipse. |
Ok. Thanks for checking. Add IDE field to all documents which do not already have one Question: What do the last two false, true do? I cannot find that documented: https://docs.mongodb.org/v2.6/reference/method/db.collection.update/ and do the same for db.users, db.projects and so on. |
And this command should update all the intervals in the database which don't have "ide" field, to have "ide":"ec":
Note that it can take a while to execute it (on my laptop, it took 13 minutes to update 7.28 millions of intervals). |
Oh, didn't see your comment before mine :-) The first boolean is for "upsert" ('true' means to add a field if it doesn't exist). The second boolean is for "multi" ('true' if we want to apply command on all the intervals returned by query). |
I've checked User registrations on server and tried to match them with existing intervals: There are, however, some users of IntelliJ among them (just 5 out of 71) , but also users for which is not possible to determine the ide (probably users without intervals), 31 out of 71. I think it would be the easiest solution to manually update these IntelliJ Users with "ide":"ij", and all the others with "ide":"ec". For projects: we have only 1 empty (that's good!), 5 IntelliJ and 53 Eclipse projects. |
Check number of intervals with non-ide field:
Then update them |
OK, this seems to have worked and we get |
Note to myself: I still need to perform the user-to-IDE matching suggested by Igor in the last comment so that user accounts have the best possible IDE field. |
Completed now. |
Get the empty user/project registrations, perform this check: Do some Emacs-magic. Put them in a Then run:
|
I just discovered we still have this problem, and on a much larger scale now. |
Intervals are often missing the ide field, but at least it is always present in the projects. We can thus do a write-over from the projects to the intervals |
In
StartUpHandler
, instartWatchDog()
method, WD is first started and thenWatchDogGlobals.hostIDE
is set toIDE.ECLIPSE
. This causes some intervals not to have their IDE field initialized.I can add a fix for this in my already opened PR or I can submit a new one, @Inventitech just let me know what do you think.
The text was updated successfully, but these errors were encountered: