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

Remove link to entity list on summary if new and unpublished #855

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

ktuite
Copy link
Member

@ktuite ktuite commented Sep 12, 2023

Frontend part of getodk/central#467 to de-linkify the name of a new entity list.

Screen Shot 2023-09-12 at 2 59 11 PM

The corresponding backend change getodk/central-backend#974 makes it so if the user gets to the page that used to be in this link, it will say "resource not found" w/o any changes because backend now returns a 404 for getting details about an unpublished dataset.

What has been done to verify that this works as intended?

Trying it, tests.

Why is this the best possible solution? Were any other approaches considered?

I looked at the details coming back from the dataset-diff endpoint for a form draft, and isNew on the dataset itself seemed like a good one to use to decided to create a link or not.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Less access to broken parts of frontend, more consistent behavior.

Does this change require updates to user documentation? If so, please file an issue here and include the link below.

n/a

Before submitting this PR, please make sure you have:

  • run npm run test and npm run lint and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

{{ dataset.name }}
</router-link>
<template v-else>
Copy link
Member

Choose a reason for hiding this comment

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

Instead of <template>, how about <span v-tooltip.text> in case the dataset name is very long?

Copy link
Member Author

Choose a reason for hiding this comment

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

the outer div .dataset-name seems to take care of this already without changes!

Screen Shot 2023-09-12 at 5 37 11 PM

@ktuite ktuite merged commit 143211a into master Sep 13, 2023
1 check passed
@matthew-white matthew-white deleted the ktuite/no-link-new-entity-list branch September 13, 2023 02:47
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