Repository navigation
הסרת קוד מת: kDocxConverterVersion — שם ותיק שנשאר בלי שימוש - #4856
Merged
Y-PLONI merged 1 commit intoNov 11, 2026
Merged
Conversation
kDocxConverterVersion הוא כינוי ל-kOoxmlWordConverterVersion שנשאר כשהמנוע הוכלל לכל פורמטי OOXML (cc64634). המשתמש היחיד שלו היה בדיקה ב-text_book_title_overflow_test, והיא נמחקה ב-069ca661e. מאז אין לו קוראים, והמטמון ו-converterVersionFor משתמשים בשם החדש. שתי הערות שהפנו אליו עודכנו: בבדיקת ה-golden של ממיר ה-Word מופיע השם הנוכחי, ובהערה של DocxTextCacheEntry הושמט השם, כי הרשומה שומרת את גרסת הממיר של כל פורמט ולא רק של DOCX.
Y-PLONI
force-pushed
the
refactor/docx-converter-version-alias
branch
from
November 11, 2026 19:24
1a8cd95 to
20e5b63
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
מטרה
kDocxConverterVersionב-lib/utils/file/docx_to_otzaria.dartהוא שם ותיק ל-kOoxmlWordConverterVersion, ואין לו יותר אף קורא. מי שמחפש איזו גרסה פוסלת את מטמון ה-Word מוצא שני שמות לאותו ערך, ושתי הערות שמפנות לשם הישן.היסטוריה
docx_cache.dart) השתמש בו.kDocxConverterVersionהפך אז לכינוי שלkOoxmlWordConverterVersionהחדש, והקוד עצמו (docx_cache.dart,converterVersionForו-word_xml_to_otzaria.dart) עבר לשם החדש.test/text_book/view/text_book_title_overflow_test.dart(expect(kDocxConverterVersion, greaterThanOrEqualTo(9)), מ-תיקוני באגים #713).מה השתנה
lib/utils/file/docx_to_otzaria.dart: הוסרו הכינוי והערת התיעוד שלו (4 שורות).kOoxmlWordConverterVersionלא השתנה (15).lib/migration/models/docx_text_cache_entry.dart: ההערה שלconverterVersionהפנתה ל-kDocxConverterVersion. השם הושמט, כי הרשומה שומרת את גרסת הממיר של הפורמט שלה (EPUB, ODT, RTF ועוד), ולא רק של DOCX.test/utils/file/docx_golden_test.dart: ההערה שמזכירה להעלות את הגרסה כשמשנים את הפלט מפנה עכשיו ל-kOoxmlWordConverterVersion.פסילת המטמון לא משתנה: המטמון ו-
converterVersionForקוראים כבר אתkOoxmlWordConverterVersionישירות, והערך השמור ברשומות זהה.חיפשתי את השם בכל המאגר:
lib,test,integration_test,packages,tool,docs, קובצי arb וה-workflows. אין לו שימוש אחר, גם לא כמחרוזת.PR פתוחים
docx_to_otzaria.dartבאזור אחר (_imageUriFromRun) ומתמזג עם השינוי בלי התנגשות.git merge-tree --write-treeמול ראש כל אחד מ-38 ה-PR הפתוחים: אין התנגשות חדשה. 12 מהם (קורא: כפתור קדימה, יעד החזרה בתיאור, ושכפול כרטיסייה לא מוצמד #4815, UI: תיקון 14 איסואים שהוקצו, ועיצוב דיאלוג "הצגה או הוספה של הקבצים" #4782, build: archive מהענף המשולב לאחר QA ותיקוני upstream #4776, build(windowing): pin window_manager to the fork's combined main branch #4762, feat(windowing): migrate Otzaria from window_manager 0.5.2 to nativeapi-based 0.6 #4731, חיפוש: הבחנה בין גוף הספר להערות ושימור הדגשות בתוצאות #4343, ניסוי: snapshots במקטעים לקורא ספרים ארוכים ומדידות מלאות #4307, Windows: בקשות נגישות לא מדליקות את גשר הנגישות של ה-engine בלי קורא מסך (#3336, #3376, #3377) #3403, מרקר מובנה במקום תוסף המרקר #3036, Close a floating side pane when scrolling over its scrim #2860, תנ"ך בקריאה רציפה: «כמסורה» — פרק ופסוק בגליון, פרשה ועלייה בצד, פסקה בפתוחה #2788, allowlist: כתובות רשת לתוסף עלוני שבת (com.otzaria-alonim) #2726) מתנגשים גם עם הבסיס, באותם קבצים בדיוק, בלי קשר לשינוי.kDocxConverterVersion, ואף PR פתוח לא מוסיף שימוש כזה.בדיקות
dart analyzeעל שלושת הקבצים: אין בעיות.dart format --set-exit-if-changed: אין שינויים.flutter test -j 1על 9 קבצים: 8 הקבצים שמייבאים אתdocx_to_otzaria.dartאו אתdocx_text_cache_entry.dart, ועודtest/utils/file/docx_cache_test.dart(שכבת המטמון של הממיר). פסילת רשומה לפי גרסת הממיר נבדקת ב-docx_text_cache_test.dart. בענף: 255 עברו, 0 נכשלו. ב-dev נקי: אותן 255 עברו.test/utils/file/:docx_golden_test.dart,converter_versions_test.dart,docx_to_otzaria_test.dart,docx_hyperlinks_test.dart,malformed_document_hardening_test.dart,word_xml_to_otzaria_test.dart,docx_cache_test.darttest/data_providers/docx_text_cache_test.dart,test/migration/file_cache_dao_busy_test.dart