-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Traack remove local storage code #138
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0072659
First attempt at removing local storage code
dinoboy197 28d0fe3
Fixing api call
avenmia f87b3df
Only show the pol.is survey if the user xid is not null
avenmia 1b4485e
Removing xid from user table and using the user's ID
avenmia d5a7d93
Fixing script appending
avenmia 46996cd
Merge branch 'main' into traack-remove-local-storage-code
avenmia e6422cd
Merge branch 'main' into traack-remove-local-storage-code
avenmia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
prisma/migrations/20230724033054_remove_xid_column/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
Warnings: | ||
|
||
- You are about to drop the column `xid` on the `User` table. All the data in the column will be lost. | ||
|
||
*/ | ||
BEGIN TRY | ||
|
||
BEGIN TRAN; | ||
|
||
-- DropIndex | ||
ALTER TABLE [dbo].[User] DROP CONSTRAINT [User_xid_key]; | ||
|
||
-- AlterTable | ||
ALTER TABLE [dbo].[User] DROP COLUMN [xid]; | ||
|
||
COMMIT TRAN; | ||
|
||
END TRY | ||
BEGIN CATCH | ||
|
||
IF @@TRANCOUNT > 0 | ||
BEGIN | ||
ROLLBACK TRAN; | ||
END; | ||
THROW | ||
|
||
END CATCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for this page to load if the user hasn't logged in yet?
If yes, then I propose that if we detect that the userID isn't in the session that we redirect the user back to the home page instead of just saying Loading Surveys. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we want to redirect the user back to the home page if they're not logged in for all pages, but I'll add that in a separate PR