Skip to content

Conversation

@Srivatsa19
Copy link

@Srivatsa19 Srivatsa19 commented Apr 14, 2024

Issue that this pull request solves

Removed the changes in the globals/api/views.py
Closes: # (issue number)

Proposed changes

Unwanted changes have been reverted

Brief description of what is fixed or changed

The unwanted changes in globals have been removed and users can only access the urls after logging in

Types of changes

Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [] 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

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

Screenshots

https://drive.google.com/drive/folders/1iQBxUOuhojei7qLjph9K1bhximrseokW?usp=sharing
Please attach the screenshots of the changes made in case of change in user interface

Other information

@varun7singh
@ChaudharyRaman
@prajjwalkapoor
Any other information that is important to this pull request

Comment on lines -226 to -238
migrations.CreateModel(
name='Requests',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
('description', models.CharField(max_length=200)),
('area', models.CharField(max_length=200)),
('requestCreatedBy', models.CharField(max_length=200)),
('engineerProcessed', models.IntegerField()),
('directorApproval', models.IntegerField()),
('deanProcessed', models.IntegerField()),
('status', models.CharField(max_length=200)),
],

Choose a reason for hiding this comment

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

Any particular reason behind deleting these ?? Like Ig these are auto-generated?

Copy link
Author

@Srivatsa19 Srivatsa19 Apr 14, 2024

Choose a reason for hiding this comment

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

These changes were actually giving errors after running migrations in Anudeep's laptop. The requests model was implemented by us but while making migrations it got added in the 0001_initial.py file. So he told me to remove this piece of code.

Comment on lines -106 to -111
elif profile['user_type'] == 'staff':
resp = {
'user' : user_detail,
'profile' : profile,
}
return Response(data=resp, status=status.HTTP_200_OK)

Choose a reason for hiding this comment

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

And why are we removing the case when the user is staff?

Copy link
Author

Choose a reason for hiding this comment

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

This piece of code was added by the dashboard module member in my local setup and we forgot to revert it back, he told that these changes should not be here and these changes will be reflected in the PR they would raise after their implementation is completed.

@Priyansh61 Priyansh61 merged commit 194a36d into FusionIIIT:gad-2 Apr 15, 2024
@Priyansh61
Copy link

Ping Integration leads plss to raise a PR for the latest_staging. Thanks @Srivatsa19

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.

7 participants