Просмотр исходного кода

Revert "Check for changed files since last merge in GitHub Sync modal (#24180)" (#24273)

This reverts commit 4cd55e1501648f0a18b77be5af19deb0773d6881.

GitOrigin-RevId: 132eead97e924037c2fd17fd636a769ef95f4cc1
Alf Eaton 1 год назад
Родитель
Сommit
28ff69b51b

+ 0 - 11
services/web/app/src/Features/Project/ProjectGetter.js

@@ -152,17 +152,6 @@ const ProjectGetter = {
       'deleterData.deletedProjectOwnerId': userId,
     }).exec()
   },
-
-  async getHistoryId(projectId) {
-    const project = await this.getProject(projectId, {
-      'overleaf.history.id': 1,
-    })
-    const historyId = project?.overleaf?.history?.id
-    if (!historyId) {
-      throw new OError('project does not have a history id', { projectId })
-    }
-    return historyId
-  },
 }
 
 module.exports = {

+ 1 - 3
services/web/frontend/extracted-translations.json

@@ -238,8 +238,6 @@
   "change_the_ownership_of_your_personal_projects": "",
   "change_to_group_plan": "",
   "change_to_this_plan": "",
-  "changed_file_count_since_last_merge": "",
-  "changed_file_count_since_last_merge_plural": "",
   "changes_the_color_scheme_of_the_code_editor": "",
   "changing_the_position_of_your_figure": "",
   "changing_the_position_of_your_table": "",
@@ -276,6 +274,7 @@
   "column_width_is_x_click_to_resize": "",
   "comment": "",
   "comment_submit_error": "",
+  "commit": "",
   "common": "",
   "common_causes_of_compile_timeouts_include": "",
   "commons_plan_tooltip": "",
@@ -1047,7 +1046,6 @@
   "no_actions": "",
   "no_borders": "",
   "no_caption": "",
-  "no_changed_files_since_last_merge": "",
   "no_comments": "",
   "no_comments_or_suggestions": "",
   "no_existing_password": "",

+ 1 - 3
services/web/locales/en.json

@@ -304,8 +304,6 @@
   "change_the_ownership_of_your_personal_projects": "Change the ownership of your personal projects to the new account. <0>Find out how to change project owner.</0>",
   "change_to_group_plan": "Change to a group plan",
   "change_to_this_plan": "Change to this plan",
-  "changed_file_count_since_last_merge": "__count__ changed file in __appName__ since last merge",
-  "changed_file_count_since_last_merge_plural": "__count__ changed files in __appName__ since last merge",
   "changes_the_color_scheme_of_the_code_editor": "Changes the color scheme of the code editor",
   "changing_the_position_of_your_figure": "Changing the position of your figure",
   "changing_the_position_of_your_table": "Changing the position of your table",
@@ -356,6 +354,7 @@
   "column_width_is_x_click_to_resize": "Column width is __width__. Click to resize",
   "comment": "Comment",
   "comment_submit_error": "Sorry, there was a problem submitting your comment",
+  "commit": "Commit",
   "common": "Common",
   "common_causes_of_compile_timeouts_include": "Common causes of compile timeouts include",
   "commons_plan_tooltip": "You’re on the __plan__ plan because of your affiliation with __institution__. Click to find out how to make the most of your Overleaf premium features.",
@@ -1383,7 +1382,6 @@
   "no_articles_matching_your_tags": "There are no articles matching your tags",
   "no_borders": "No borders",
   "no_caption": "No caption",
-  "no_changed_files_since_last_merge": "No changed files in __appName__ since last merge",
   "no_comments": "No comments",
   "no_comments_or_suggestions": "No comments or suggestions",
   "no_existing_password": "Please use the password reset form to set your password",