nosql4idea
nosql4idea copied to clipboard
Could help with the development
Hey, I love both IDEA, and mongo. I'd love to write some code for your plugin. Do you have a list of features planned? I can fork, develop and send you a pull request then.
Thanks!
Hi,
Great news and thanks for supporting it.
About Mongo, many features are in the backlog:
- Complete migration to the mongo-java-driver-3.0 (some methods or classes are deprecated)
- Implementing a lazing loading with
Cursor
returned by the driver. - an interesting requested feature
- Show Index infos of a collection
- Show the number of results returned by the query (there is a lot of space at the right of the toolbar)
Tell me which of them you would like to code.
Reards
Thanks for the update, I'll start on migrating mongo to the 3.0 driver. That'll give me a good overlay of your code structure.
I've managed to upgrade the entire core to the new driver and classes.
Somehow the JPanel classes seem to fail running their tests. For example, line 30 of RedisAuthenticationPanel throws a null pointer exception. It used to work before. Any idea why so?
HI,
You should create a fork from the github project. So I will be able to have a look on your modifications and help you on the issue you encounter.
Regards
Regarding the code structure, there is still some dirty area I have to refactor. If you have any suggestion, please fell free to submit ;)
You can see my changes here: https://github.com/dboissier/nosql4idea/compare/master...judepereira:Upgrading-to
I've refactored the names of your classes MongoCollection and and MongoClient to SingleMongoCollection and SingleMongoClient respectively, as the 3.x driver has similarly named classes.
The most weird part is that the redis swing test worked even after my changes, but then suddenly stopped working. Not sure why.
Funny, a project rebuilt solved the issue. I'm facing only one test case issue now, will let you know if I can't update it correctly.
@dboissier Looks like I've managed to update it all to the latest driver :) All the test cases are passing now, except for one - test displayTreeWithASimpleArray in MongoResultPanelTest. This one attempts to create a MongoResult object with an array. Does mongo ever return an array to any query?
My update to MongoResult class only accepts Document objects. In your test there, you're looking to load strings into the MongoResult object.
@dboissier have you got a chance to look at that test case?
Hi,
sorry for being idle these weeks (prefessional matters). Here a proposal:
- Disable the test case by adding @Ignored annotation
- When you sumbit the pull request, I will have a look on it.
Regards,
David