Skip to content

Rspc 2025 1#1439

Merged
ChaudharyRaman merged 97 commits intoFusionIIIT:rspcfrom
SharanKumar06:rspc_2025_1
Apr 13, 2024
Merged

Rspc 2025 1#1439
ChaudharyRaman merged 97 commits intoFusionIIIT:rspcfrom
SharanKumar06:rspc_2025_1

Conversation

@SharanKumar06
Copy link

@SharanKumar06 SharanKumar06 commented Apr 11, 2024

Issue that this pull request solves

responsiveness added and error handling done
Closes: # (issue number)

Proposed changes

1.error handling done
2. user can only do access pages after login

Brief description of what is fixed or changed

Types of changes

Put an x in the boxes that apply

  • [ x ] Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [ x ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

Put an x in the boxes that apply

  • [ x ] My code follows the style guidelines of this project
  • [ x ] I have performed a self-review of my own code
  • [ x ] I have created new branch for this pull request
  • [ x ] I have commented my code, particularly in hard-to-understand areas
  • [x ] I have made corresponding changes to the documentation
  • [ x ] My changes generate no new warnings
  • [ x ] My changes does not break the current system and it passes all the current test cases.

Screenshots

https://drive.google.com/drive/folders/1G07daQnqNSvfMfnX0TgyTTS6RUTECYmO
Please attach the screenshots of the changes made in case of change in user interface

Other information

Any other information that is important to this pull request

@varun7singh
@ChaudharyRaman
@prajjwalkapoor

Copy link

@Priyansh61 Priyansh61 left a comment

Choose a reason for hiding this comment

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

Kindly address the changes

Comment on lines 170 to 174
if not check.exists():
messages.error(request,"Request not added, no such project investigator exists 2")
messages.error(request,"Request not added, no such project investigator exists ")
return render(request,"rs/projects.html")


Choose a reason for hiding this comment

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

This is being repeated twice kindly take a look....

Copy link
Contributor

Choose a reason for hiding this comment

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

I think one is checking for pid and another is checking copid

Comment on lines 193 to 199
for i in obj:
if i.project_name==projectname:
messages.error(request,"Request not added, project name already exists")
return render(request,"rs/projects.html")



Choose a reason for hiding this comment

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

Use better variable naming here for better understanding of this part

Comment on lines 137 to 147
def add_projects(request):

# designation = getDesignation(request.user.username)
# print("designation is " + designation)
# if designation != 'rspc_admin':
# messages.error(request, 'Only RSPC Admin can add projects')
# return redirect("/research_procedures")

if request.method== "POST":
obj= request.POST
projectname= obj.get('project_name')

Choose a reason for hiding this comment

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

Please break this function into modular small function since it has a very important functionality and is quite big

Copy link

@theoden42 theoden42 left a comment

Choose a reason for hiding this comment

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

Please provide clarification on the view_inbox part, other than that LGTM

# data = view_inbox(request.user.username,user_designation, "research_procedures")
user_obj = get_user_by_username(request.user.username)

data= Tracking.objects.filter(receiver_id=user_obj, receive_design=user_designation, file_id__src_module="research_procedures")

Choose a reason for hiding this comment

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

why use this instead of view_inbox which directly provides a list of file ids?

@ChaudharyRaman ChaudharyRaman merged commit a9653a8 into FusionIIIT:rspc Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.