דירוג לא חוקי

תיאור

דירוג לא תקין מתרחש כשreview עומד בתנאים הבאים:

  • טווח הדירוג המינימלי שווה לטווח הדירוג המקסימלי.
  • דירוג הביקורת לא נמצא בין הערכים המינימליים והמקסימליים (כולל טווח הדירוג).

איך לתקן

שולחים את review עם last_update_timestamp מעודכן, ומוודאים את הדברים הבאים:

  1. הערך של טווח הדירוג המינימלי לא שווה לערך של טווח הדירוג המקסימלי.
  2. דירוג הביקורת נמצא בטווח הדירוג בין ערכי המינימום והמקסימום (כולל).

דוגמה

ב-1 במרץ, אתם מעלים את קובץ הפיד 2017_03_01.xml לנקודת הקצה. הקובץ מכיל את התוכן הבא:

<review id="156368" mid="2739">
  <reviewer_name>Ada</reviewer_name>
  <create_timestamp>2017-02-27T07:55:06Z</create_timestamp>
  <last_update_timestamp>2017-02-27T07:55:06Z</last_update_timestamp>
  <country_code>US</country_code>
  <title >Great prices </title>
  <content>My order arrived on time and I got a great price.</content>
  <ratings>
  <overall min="1" max="10">0</overall>
  <customer_service min="1" max="10">10</customer_service>
  </ratings>
  <collection_method>after_fulfillment</collection_method>
</review>

הקובץ שלמעלה מכיל ביקורת עם דירוג שחורג מטווח הדירוג שצוין. אחרי עיבוד הפיד, צוות התמיכה מודיע לך שקרתה בעיה בנתונים, סיווג לא תקין.

כמה ימים לאחר מכן, אחרי שבדקת את התיעוד, העלית את הקובץ 2017_03_04-fix.xml לנקודת הקצה כדי לפתור את הבעיה של הסיווג הלא תקין. התוכן של הקובץ '2017_03_04-fix.xml' מופיע בהמשך:

<review id="156368" mid="2739">
  <reviewer_name>Ada</reviewer_name>
  <create_timestamp>2017-02-27T07:55:06Z</create_timestamp>
  <last_update_timestamp>2017-03-03T08:01:20Z</last_update_timestamp>
  <country_code>US</country_code>
  <title>Great prices</title>
  <content>My order arrived on time and I got a great price.</content>
  <ratings>
    <overall min="1" max="10">8</overall>
    <customer_service min="1" max="10">10</customer_service>
  </ratings>
  <collection_method>after_fulfillment</collection_method<
</review>