דירוג לא חוקי

תיאור

דירוג לא חוקי מתרחש כאשר 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>