forked from TEAMMATES/teammates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TEAMMATES#11352] Logging in does not preserve query parameters other…
… than the first one (TEAMMATES#11353) * Encode & when forming nextUrl * Remove unnecessary studentEmail parameter when querying unregistered student
- Loading branch information
1 parent
2b8b524
commit 37f1cb4
Showing
9 changed files
with
51 additions
and
42 deletions.
There are no files selected for viewing
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
36 changes: 36 additions & 0 deletions
36
src/client/java/teammates/client/scripts/IndexFeedbackSessionFields.java
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,36 @@ | ||
package teammates.client.scripts; | ||
|
||
import com.googlecode.objectify.cmd.Query; | ||
|
||
import teammates.storage.entity.FeedbackSession; | ||
|
||
/** | ||
* Index the newly-indexable fields of feedback sessions. | ||
*/ | ||
public class IndexFeedbackSessionFields extends DataMigrationEntitiesBaseScript<FeedbackSession> { | ||
|
||
public static void main(String[] args) { | ||
new IndexFeedbackSessionFields().doOperationRemotely(); | ||
} | ||
|
||
@Override | ||
protected Query<FeedbackSession> getFilterQuery() { | ||
return ofy().load().type(FeedbackSession.class); | ||
} | ||
|
||
@Override | ||
protected boolean isPreview() { | ||
return true; | ||
} | ||
|
||
@Override | ||
protected boolean isMigrationNeeded(FeedbackSession session) { | ||
return true; | ||
} | ||
|
||
@Override | ||
protected void migrateEntity(FeedbackSession session) { | ||
// Save without any update; this will build the previously non-existing indexes | ||
saveEntityDeferred(session); | ||
} | ||
} |
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
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