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

project dropdown and pagination on logs page #43

Closed
wants to merge 2 commits into from

Conversation

udbhavsomani
Copy link
Member

No description provided.

{% endif %}
</span>
</div> -->

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is earlier implementation of Pagination right ? I don't think so it is required can we remove it ?

@@ -172,7 +172,7 @@ def projectListView(request):
# add member and log count
project.nooflogs = Logger.objects.filter(project=project).count()
project.noofteams = project.team_set.all().count()
print(project.noofteams, project.nooflogs)
# print(project.noofteams, project.nooflogs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just remove this line instead of just commenting

</div>
<!-- Project-->

</div>
{% endblock content %} {% block scripts %}

{% if not personal %}
<script>
document.getElementById("projects").value = "{{selected}}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This piece of code to communicate between Javscript and Python is pretty hacky, when python returns None , Javascript wouldn't process it as NULL it might break. that's why it isn't recommended to communicate between the two this way. Just make sure yopu test this part well.

@AroraShreshth AroraShreshth added this to In progress in V1.1 Mar 18, 2021
V1.1 automation moved this from In progress to Done Mar 18, 2021
@AroraShreshth AroraShreshth moved this from Done to In progress in V1.1 Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
V1.1
In progress
Development

Successfully merging this pull request may close these issues.

Filter Logs on Log list page depending on the projects and Teams
2 participants