Skip to content

Feature/truncate title description#3023

Closed
raymon1 wants to merge 1 commit intofacebook:mainfrom
raymon1:feature/truncate_title_description
Closed

Feature/truncate title description#3023
raymon1 wants to merge 1 commit intofacebook:mainfrom
raymon1:feature/truncate_title_description

Conversation

@raymon1
Copy link
Copy Markdown
Contributor

@raymon1 raymon1 commented Apr 7, 2025

Description

in #2969 the validations were relaxed, this might cause some backend issues. In this diff, in order to sync products, we are truncating any extra characters form the title and description

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have commented my code, particularly in hard-to-understand areas.
  • I have confirmed that my changes do not introduce any new PHPCS warnings or errors.
  • I followed general Pull Request best practices. Meta employees to follow this wiki.
  • I have added tests (if necessary) and all the new and existing unit tests pass locally with my changes.
  • I have completed dogfooding and QA testing, or I have conducted thorough due diligence to ensure that it does not break existing functionality.
  • I have updated or requested update to plugin documentations (if necessary). Meta employees to follow this wiki.

Changelog entry

Truncates extra characters from title and description

Test Plan

Create item with more than the limits of 150 character for title and more than 5000 for description
Before:
The title/description will be missing
if both title and description are above limit, the item won't be synced

After:
Truncates (title/description)
image
synced
image

Screenshots

Please provide screenshots or snapshots of the system/state both before and after implementing the changes, if appropriate

Before

After

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@raymon1 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@raymon1 raymon1 force-pushed the feature/truncate_title_description branch from 2d4cd11 to 46a8728 Compare April 8, 2025 11:04
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@raymon1 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@raymon1 merged this pull request in b2a677e.

vinkmeta pushed a commit that referenced this pull request Apr 13, 2025
Summary:
## Description

in #2969 the validations were relaxed, this might cause some backend issues. In this diff, in order to sync products, we are truncating any extra characters form the title and description

### Type of change
- New feature (non-breaking change which adds functionality)

## Checklist

- [X] I have commented my code, particularly in hard-to-understand areas.
- [X] I have confirmed that my changes do not introduce any new PHPCS warnings or errors.
- [X] I followed general Pull Request best practices. Meta employees to follow this [wiki]([url](https://fburl.com/wiki/2cgfduwc)).
- [X] I have added tests (if necessary) and all the new and existing unit tests pass locally with my changes.
- [X] I have completed dogfooding and QA testing, or I have conducted thorough due diligence to ensure that it does not break existing functionality.
- [X] I have updated or requested update to plugin documentations (if necessary). Meta employees to follow this [wiki]([url](https://fburl.com/wiki/nhx73tgs)).

## Changelog entry

Truncates extra characters from title and description

Pull Request resolved: #3023

Test Plan:
Create item with more than the limits of 150 character for title and more than 5000 for description
Before:
The title/description will be missing
if both title and description are above limit, the item won't be synced

After:
Truncates (title/description)
<img width="2056" alt="image" src="https://github.com/user-attachments/assets/4eb494c7-d070-485a-8b6d-e9ff187fedfb" />
synced
<img width="2056" alt="image" src="https://github.com/user-attachments/assets/01b0a61d-3fe2-4a92-9a01-e2e263ad76a5" />

## Screenshots
Please provide screenshots or snapshots of the system/state both before and after implementing the changes, if appropriate
### Before

### After

Reviewed By: vinkmeta, SayanPandey

Differential Revision: D72567584

Pulled By: raymon1

fbshipit-source-id: 17a6b279f1a3ce5d55237b885c3d349b9b6abdfb
vahidkay-meta pushed a commit that referenced this pull request Apr 14, 2025
Summary:
## Description

in #2969 the validations were relaxed, this might cause some backend issues. In this diff, in order to sync products, we are truncating any extra characters form the title and description

### Type of change
- New feature (non-breaking change which adds functionality)

## Checklist

- [X] I have commented my code, particularly in hard-to-understand areas.
- [X] I have confirmed that my changes do not introduce any new PHPCS warnings or errors.
- [X] I followed general Pull Request best practices. Meta employees to follow this [wiki]([url](https://fburl.com/wiki/2cgfduwc)).
- [X] I have added tests (if necessary) and all the new and existing unit tests pass locally with my changes.
- [X] I have completed dogfooding and QA testing, or I have conducted thorough due diligence to ensure that it does not break existing functionality.
- [X] I have updated or requested update to plugin documentations (if necessary). Meta employees to follow this [wiki]([url](https://fburl.com/wiki/nhx73tgs)).

## Changelog entry

Truncates extra characters from title and description

Pull Request resolved: #3023

Test Plan:
Create item with more than the limits of 150 character for title and more than 5000 for description
Before:
The title/description will be missing
if both title and description are above limit, the item won't be synced

After:
Truncates (title/description)
<img width="2056" alt="image" src="https://github.com/user-attachments/assets/4eb494c7-d070-485a-8b6d-e9ff187fedfb" />
synced
<img width="2056" alt="image" src="https://github.com/user-attachments/assets/01b0a61d-3fe2-4a92-9a01-e2e263ad76a5" />

## Screenshots
Please provide screenshots or snapshots of the system/state both before and after implementing the changes, if appropriate
### Before

### After

Reviewed By: vinkmeta, SayanPandey

Differential Revision: D72567584

Pulled By: raymon1

fbshipit-source-id: 17a6b279f1a3ce5d55237b885c3d349b9b6abdfb
mradmeta pushed a commit that referenced this pull request Apr 14, 2025
Summary:
## Description

in #2969 the validations were relaxed, this might cause some backend issues. In this diff, in order to sync products, we are truncating any extra characters form the title and description

### Type of change
- New feature (non-breaking change which adds functionality)

## Checklist

- [X] I have commented my code, particularly in hard-to-understand areas.
- [X] I have confirmed that my changes do not introduce any new PHPCS warnings or errors.
- [X] I followed general Pull Request best practices. Meta employees to follow this [wiki]([url](https://fburl.com/wiki/2cgfduwc)).
- [X] I have added tests (if necessary) and all the new and existing unit tests pass locally with my changes.
- [X] I have completed dogfooding and QA testing, or I have conducted thorough due diligence to ensure that it does not break existing functionality.
- [X] I have updated or requested update to plugin documentations (if necessary). Meta employees to follow this [wiki]([url](https://fburl.com/wiki/nhx73tgs)).

## Changelog entry

Truncates extra characters from title and description

Pull Request resolved: #3023

Test Plan:
Create item with more than the limits of 150 character for title and more than 5000 for description
Before:
The title/description will be missing
if both title and description are above limit, the item won't be synced

After:
Truncates (title/description)
<img width="2056" alt="image" src="https://github.com/user-attachments/assets/4eb494c7-d070-485a-8b6d-e9ff187fedfb" />
synced
<img width="2056" alt="image" src="https://github.com/user-attachments/assets/01b0a61d-3fe2-4a92-9a01-e2e263ad76a5" />

## Screenshots
Please provide screenshots or snapshots of the system/state both before and after implementing the changes, if appropriate
### Before

### After

Reviewed By: vinkmeta, SayanPandey

Differential Revision: D72567584

Pulled By: raymon1

fbshipit-source-id: 17a6b279f1a3ce5d55237b885c3d349b9b6abdfb
rubycalling pushed a commit that referenced this pull request Apr 16, 2025
Summary:
## Description

in #2969 the validations were relaxed, this might cause some backend issues. In this diff, in order to sync products, we are truncating any extra characters form the title and description

### Type of change
- New feature (non-breaking change which adds functionality)

## Checklist

- [X] I have commented my code, particularly in hard-to-understand areas.
- [X] I have confirmed that my changes do not introduce any new PHPCS warnings or errors.
- [X] I followed general Pull Request best practices. Meta employees to follow this [wiki]([url](https://fburl.com/wiki/2cgfduwc)).
- [X] I have added tests (if necessary) and all the new and existing unit tests pass locally with my changes.
- [X] I have completed dogfooding and QA testing, or I have conducted thorough due diligence to ensure that it does not break existing functionality.
- [X] I have updated or requested update to plugin documentations (if necessary). Meta employees to follow this [wiki]([url](https://fburl.com/wiki/nhx73tgs)).

## Changelog entry

Truncates extra characters from title and description

Pull Request resolved: #3023

Test Plan:
Create item with more than the limits of 150 character for title and more than 5000 for description
Before:
The title/description will be missing
if both title and description are above limit, the item won't be synced

After:
Truncates (title/description)
<img width="2056" alt="image" src="https://github.com/user-attachments/assets/4eb494c7-d070-485a-8b6d-e9ff187fedfb" />
synced
<img width="2056" alt="image" src="https://github.com/user-attachments/assets/01b0a61d-3fe2-4a92-9a01-e2e263ad76a5" />

## Screenshots
Please provide screenshots or snapshots of the system/state both before and after implementing the changes, if appropriate
### Before

### After

Reviewed By: vinkmeta, SayanPandey

Differential Revision: D72567584

Pulled By: raymon1

fbshipit-source-id: 17a6b279f1a3ce5d55237b885c3d349b9b6abdfb
@tzahgr tzahgr mentioned this pull request Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants