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

Disallow attribute deletes if use=required #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andreuccio
Copy link

Proposed way to not display the (x) if an attribute is required

@bbpennel
Copy link
Member

bbpennel commented Oct 7, 2015

Thank you andreuccio! I am interested to know what your use cases are for wanting to suppress the delete button from attributes, so we can figure out what the best ways to address the issue are.

@andreuccio
Copy link
Author

Not sure I understand what you mean by "use cases". Wouldn't you want to suppress the delete button for all required attributes?

@vog
Copy link
Contributor

vog commented Jul 7, 2017

This pull request is almost 2 years old, despite being well-explained and straight forwardly implemented. What's holding back the merge of this pull request?

@bbpennel
Copy link
Member

bbpennel commented Jul 8, 2017

Apologies, there aren't any issues with the code per say. Mainly this wasn't merged at the time because the editor doesn't perform schema restriction enforcement, it primarily provides assistance. Removing GUI components which limit the users ability to perform work (can't remove element because x number are required, etc) was something we were avoiding until there was a push for a more holistic approach, which hasn't happened. There were also some concerns the behavior might be unexpected since other aspects of required attributes were not implemented (auto-adding required attributes when adding the element, etc). That is why I was trying to find out a bit more about how this change was expected to be used, and then lost track of it.

So I am waffling somewhat on whether to merge this. There isn't much reason to remove a required attribute once it is added, but it would be the only thing treated this way.

@vog
Copy link
Contributor

vog commented Jul 11, 2017

For reference, this topic has also been discussed in #16.

@lfarrell lfarrell changed the base branch from master to main March 10, 2021 14:26
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.

3 participants