Open kshitijrajsharma opened 6 months ago
Kindly assign this issue to me
Sure go ahead , This issue can be worked by multiple people hence no need for assignee , You can fork the repo and start working on it ! Feel free to drop questions.
I will also be working on this.
i would like to work on this issue as well. Would like to know if the project can be run on windows.
Hello! I will also be working on this.
please @kshitijrajsharma can you assign it to me too ?
Yes project can run on windows ! There is a windows installation doc in repo
I will be working on this too
Hello, I would also be working on this issue
@kshitijrajsharma please i'm trying to install the requirements.txt file and it throws an error concerning the tensorflow version, ERROR: Could not find a version that satisfies the requirement tflite-runtime==2.14.0 (from versions: none) ERROR: No matching distribution found for tflite-runtime==2.14.0 any suggestions?
I will also be working on this.
I'd also like to work on this. Thank you.
@kshitijrajsharma please i'm trying to install the requirements.txt file and it throws an error concerning the tensorflow version,
ERROR: Could not find a version that satisfies the requirement tflite-runtime==2.14.0 (from versions: none)
ERROR: No matching distribution found for tflite-runtime==2.14.0
any suggestions?
Are you using docker ?
Working on this, thank you.
@kshitijrajsharma please i'm trying to install the requirements.txt file and it throws an error concerning the tensorflow version, ERROR: Could not find a version that satisfies the requirement tflite-runtime==2.14.0 (from versions: none) ERROR: No matching distribution found for tflite-runtime==2.14.0 any suggestions?
Are you using docker ?
i have docker installed, but I'm not using it
I would like to working on this issue
Hello World!
I would love to work on this project!
Happy contributing :)
@kshitijrajsharma I have the project running now.
There is a slight issue I ran into that might be helpful for others to note.
I was initially not able to login to OSM from the fair frontend server, as its requests to the backend kept getting bounced due to CORS errors.
Looking at the .env file for the backend, and the settings.py file, everything was already configured. I thought it was due to some errors from the backend and database container logs but that turned out to not be the case.
All I had to do was open the frontend using "127.0.0.1:3000" instead of "localhost:3000" and that fixed everything.
I would also recommend for others to use docker and follow the instructions from https://github.com/hotosm/fAIr/blob/master/docs/Docker-installation.md.
Lovely @owolabioromidayo !
All I had to do was open the frontend using "127.0.0.1:3000" instead of "localhost:3000" and that fixed everything.
That is fully correct ! We should mention this in .md
Thank you! On it.
@kshitijrajsharma https://github.com/owolabioromidayo/fAIr/pull/1
@kshitijrajsharma I have the project running now.
There is a slight issue I ran into that might be helpful for others to note.
I was initially not able to login to OSM from the fair frontend server, as its requests to the backend kept getting bounced due to CORS errors.
Looking at the .env file for the backend, and the settings.py file, everything was already configured. I thought it was due to some errors from the backend and database container logs but that turned out to not be the case.
All I had to do was open the frontend using "127.0.0.1:3000" instead of "localhost:3000" and that fixed everything.
I would also recommend for others to use docker and follow the instructions from https://github.com/hotosm/fAIr/blob/master/docs/Docker-installation.md.
@owolabioromidayo thank you for this suggestion Have been facing issues while setting up and the link you also shared would be helpful
@kshitijrajsharma Is the test_create_dataset testcase currently passing?
This is where mine fails:
I have tried changing the input data and headers to match different branches of the LabelViewSet create method but the error remains the same.
I have also tried debugging by printing, printing to stderr, and logging output to a file from the create
method but none of those approaches yields anything. It could be that the request fails before it even reaches this method.
Is there something I might have misconfigured?
Hello @kshitijrajsharma my Outreachy initial application was approved and I would like to work on this issue. Is it still open, can I proceed to work on this issue? Pls respond
@kshitijrajsharma You should mention the need to set up a virtual environment when writing tests.
Hello can I contribute here too.
@kshitijrajsharma Is the test_create_dataset testcase currently passing?
This is where mine fails:
I have tried changing the input data and headers to match different branches of the LabelViewSet create method but the error remains the same.
I have also tried debugging by printing, printing to stderr, and logging output to a file from the
create
method but none of those approaches yields anything. It could be that the request fails before it even reaches this method.Is there something I might have misconfigured?
You are missing authentication in header , You can get your authentication from /auth endpoints . In your logs it says forbidden 🚫
Hello @kshitijrajsharma my Outreachy initial application was approved and I would like to work on this issue. Is it still open, can I proceed to work on this issue? Pls respond
Go ahead
@kshitijrajsharma
I have my TESTING_TOKEN set using the token value in the localStorage of the frontend website. It seems to work fine for the auth endpoint tests.
The 403 comes from the first dataset test without the header. The 500 however, is due an internal server error from the request with the correct header set.
@kshitijrajsharma
I have my TESTING_TOKEN set using the token value in the localStorage of the frontend website.
It seems to work fine for the auth endpoint tests.
The 403 comes from the first dataset test without the header.
The 500 however, is due an internal server error from the request with the correct header set.
Right , Do you have export tool api env variable set ? If yes , remove it and let it use default one ! It should work
It wasn't set. Ran again and nothing changed.
Then I explicitly set it to its default value and got this.
It wasn't set. Ran again and nothing changed.
Then I explicitly set it to its default value and got this.
There you go ,You solved the application error . Now that's something to debug in your test case !
I will be working on this issue
I will be working on this.
I'll be working on this.
Hi Kshitij, I will be contributing to this project.
Hello, @kshitijrajsharma. Would you mind taking a look at my submission? I'd greatly appreciate your feedback. https://github.com/tony-nyagah/fAIr/pull/1
Hey @kshitijrajsharma , I would like to work on this issue
Hello @kshitijrajsharma, I would like to work on this issue. I started already, I would make a pull request soon
@kshitijrajsharma I have received an invite to the HOTOSM slack community but I am able to join due to an org email being required. Should I go ahead and work on this issue?
@kshitijrajsharma review my pull request. This is the url => https://github.com/nwekealex65/fAIr/pull/1
I would like to work on this issue. @kshitijrajsharma
Hi @kshitijrajsharma , I also have a PR ready here https://github.com/owolabioromidayo/fAIr/pull/2.
Would like to get your thoughts on it, so I can continue coverage over other endpoints if this style is desirable. Thank you.
Hello, @kshitijrajsharma can I work on this issue as well?
Hello @kshitijrajsharma I wrote test cases for the TrainingViewSet and DataSetView this is a link to my pull request https://github.com/nwekealex65/fAIr/pull/2 please review and give me feedback
Hello @kshitijrajsharma. I wrote some tests for models in the login app. I'd greatly appreciate some feedback when you get the time. Here is the link to my pr: https://github.com/tony-nyagah/fAIr/pull/2.
I will like to work on this project
Here is my PR https://github.com/mvhammedali/fAIr/pull/2 :D
Hello, I just made a pull request here . I would really appreciate your feedback. Thank you
I will also be working on this issue.
Issue Description:
Objective:
We are seeking an enthusiastic intern to collaborate on enhancing our Django backend project by integrating backend test cases. This issue aims to ensure the robustness and reliability of our application through systematic testing practices. Your contribution will involve writing test cases, determining code coverage, and ensuring all functionalities are tested following industry best practices.
Responsibilities:
Understand the current project structure and functionality by reviewing the existing models, views, and URLs. Backend is available here. If you have trouble installing the application to do raise issue or ask for help
Collaborate with the development team to identify critical areas lacking test coverage.
Write comprehensive test cases for the Django backend, focusing on models, APIs, and integration points.
Utilize Django's testing framework effectively to automate tests.
Ensure test cases are well-documented and maintainable.
Measure and report code coverage to identify untested code segments.
Propose improvements or bug fixes identified during testing.
Participate in code reviews to receive feedback and iterate on your work.
Expected Outcomes:
Resources
Test Folder Structure :
Tests should cover Any of the following :
Videos and docs :
What should be included in PR:
--- What does this PR do ?
--- Consideration:
--- How to test ?
Support:
Feel free to ask questions or seek clarifications by commenting on this issue. We're excited to see your contributions.
How to Proceed:
tests/aoi-models
Issue will be completed when :