Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Removed iframe-height.js and its implementations #1063

Merged
merged 7 commits into from
Mar 8, 2022

Conversation

BarokDG
Copy link
Contributor

@BarokDG BarokDG commented Mar 6, 2022

Fixes

Fixes #1059 by @zackkrida

Description

I deleted iframe-height.js inside src/mixins/ and removed all imports of that file inside src/layouts/blank.vue, src/layouts/default.vue, and src/pages/audio/_id.vue. I also removed a comment explaining the use of a resize event but undid it in a second commit.

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the default branch of the repository (main) or a parent feature branch.
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added or updated tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@BarokDG BarokDG requested a review from a team as a code owner March 6, 2022 13:05
@BarokDG BarokDG requested review from krysal and obulat March 6, 2022 13:05
@BarokDG BarokDG marked this pull request as draft March 6, 2022 13:33
@BarokDG BarokDG marked this pull request as ready for review March 6, 2022 13:39
@BarokDG
Copy link
Contributor Author

BarokDG commented Mar 6, 2022

I can't figure out how to add labels. Can anyone tell me?

@zackkrida zackkrida added 🟩 priority: low Low priority and doesn't need to be rushed 🤖 aspect: dx Concerns developers' experience with the codebase 🧰 goal: internal improvement Improvement that benefits maintainers, not users labels Mar 6, 2022
@sarayourfriend
Copy link
Contributor

This is great @BarokDG thanks for the contribution and welcome to Openverse! 🎉

I think we can keep the change you made originally to remove the resize, what was the reason for reverting that?

@BarokDG
Copy link
Contributor Author

BarokDG commented Mar 7, 2022

This is great @BarokDG thanks for the contribution and welcome to Openverse! 🎉

I think we can keep the change you made originally to remove the resize, what was the reason for reverting that?

I couldn't see where the 'resize' value was used and there is another reference to 'resize' at the top of the comment. I wanted confirmation before I changed it. Should I remove both references?

@sarayourfriend
Copy link
Contributor

Should I remove both references?

Please do, thanks!

@BarokDG
Copy link
Contributor Author

BarokDG commented Mar 7, 2022

Done! I also removed a switch case for the 'resize' event in iframe-test.html.

Anything I can do about the "CI/Check translation files" check?

@krysal
Copy link
Member

krysal commented Mar 7, 2022

@BarokDG You only need to run pnpm i18n:generate-pot and commit the updated .pot file to pass that check.

BarokDG and others added 2 commits March 7, 2022 19:22
Co-authored-by: Zack Krida <zackkrida@pm.me>
@BarokDG
Copy link
Contributor Author

BarokDG commented Mar 7, 2022

I followed the instructions but the "CI=1 pnpm i18n:generate-pot" command is returning a success message. I decided to try and just commit an updated openverse.pot file but the check is still failing.

@sarayourfriend
Copy link
Contributor

Oh dear! It seems our POT file generation is clashing with Windows path delimiters! I created this issue to address that: #1066

For now I'll push the updated file so the check passes for you. Sorry about that!

@BarokDG
Copy link
Contributor Author

BarokDG commented Mar 8, 2022

Oh dear! It seems our POT file generation is clashing with Windows path delimiters! I created this issue to address that: #1066

For now I'll push the updated file so the check passes for you. Sorry about that!

It's alright. This was my first ever contribution. Thanks a lot for being so helpful and kind!

Edit: Thanks to all of you, not just @sarayourfriend😄

@BarokDG BarokDG requested a review from zackkrida March 8, 2022 09:38
Copy link
Contributor

@obulat obulat left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution, @BarokDG ! It works great.
I'm sorry about the Windows incompatibility.

Copy link
Member

@krysal krysal left a comment

Choose a reason for hiding this comment

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

Everything seems correct. Thank you @BarokDG!

@krysal krysal merged commit 961626c into WordPress:main Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🤖 aspect: dx Concerns developers' experience with the codebase 🧰 goal: internal improvement Improvement that benefits maintainers, not users 🟩 priority: low Low priority and doesn't need to be rushed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove dead iframe height code
5 participants