Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix media metadata editor changes not being saved #4572

Merged
merged 11 commits into from
Jul 22, 2024

Conversation

petrjasek
Copy link
Member

it was calling authoring editor instances to generate html which then overwrote any changes done in modal.

SDESK-7304

@petrjasek petrjasek requested a review from tomaskikutis July 11, 2024 13:21
@petrjasek petrjasek modified the milestones: 2.7, 2.7.1 Jul 11, 2024
it was calling authoring editor instances to generate
html which then overwrote any changes done in modal.

SDESK-7304
@petrjasek petrjasek force-pushed the fix-image-metadata-editor branch from 2ad6639 to 03f7abe Compare July 12, 2024 06:29
@petrjasek petrjasek changed the base branch from release/2.7 to develop July 12, 2024 06:29
scripts/apps/archive/views/upload.html Outdated Show resolved Hide resolved
e2e/client/test-files/iptc-photo.jpg Outdated Show resolved Hide resolved
e2e/client/playwright/authoring.picture.spec.ts Outdated Show resolved Hide resolved
e2e/client/playwright/page-object-models/authoring.ts Outdated Show resolved Hide resolved
e2e/client/playwright/authoring.picture.spec.ts Outdated Show resolved Hide resolved
e2e/client/playwright/page-object-models/authoring.ts Outdated Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
@petrjasek petrjasek requested a review from tomaskikutis July 16, 2024 13:00
Copy link
Member

@tomaskikutis tomaskikutis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out unresolved comments. I did resolve the ones you addressed.

e2e/client/playwright/page-object-models/authoring.ts Outdated Show resolved Hide resolved
Copy link
Member

@tomaskikutis tomaskikutis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check the remaining unresolved comments?


async saveMetadata(): Promise<void> {
await this.page.locator(s('media-editor', 'apply-metadata-button')).click();
await this.page.locator(s('change-image', 'done')).click();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is change-image image selector still inside "media-editor"? If it is, it'd be good to scope it:

await this.page.locator(s('media-editor', 'change-image', 'done')).click();

The reason being not uniqueness, but documentation - ability to quickly understand the hierarchy without having to look it up inside dev tools.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those are on the same level

@petrjasek petrjasek merged commit 2bee963 into superdesk:develop Jul 22, 2024
3 checks passed
@petrjasek petrjasek deleted the fix-image-metadata-editor branch July 22, 2024 06:58
petrjasek added a commit to petrjasek/superdesk-client-core that referenced this pull request Jul 22, 2024
* fix media metadata editor changes not being saved

it was calling authoring editor instances to generate
html which then overwrote any changes done in modal.

SDESK-7304

* trigger actions

* add test from authoring to modal

* trigger autosave when opening modal

* only trigger autosave if dirty

* fix protractor

* fix failing protractor tests

* handle feedback

* docs

* create picture authoring object

* tweak test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants