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

Expose the fields, their data types and options that exist in the project #169

Open
2 tasks done
coxd opened this issue Sep 26, 2024 · 1 comment
Open
2 tasks done
Labels

Comments

@coxd
Copy link
Contributor

coxd commented Sep 26, 2024

Please avoid duplicates

What’s missing?

The ability to see the current fields configuration for a project.

Why?

For my use case I need to list the available options for the built-in field status even if no items have that status set. Anyone who wants to discover how a project is configured would find the generally capability useful.

This seems really to just be modifying projectNodeToProperties() to not include fields from state.

There could be confusion in doing this in regards to the GitHubProject.fields property when doing this which from my understanding is about mapping/remapping the fields given back for each item.

I ignorantly thought this was all fields in the project, not those just mapped through with options.

Alternatives you tried

Could have written my own query but since everything was already loaded I just patched projectNodeToProperties().

Would you be interested in contributing the feature?

  • yes
@coxd coxd added the feature label Sep 26, 2024
@coxd
Copy link
Contributor Author

coxd commented Sep 26, 2024

I would do a PR but not really comfortable with what do to testing-wise. Not 100% sure that ProjectFieldMap is the interface you want to expose either. For example it has the OptionsBy* which are somewhat internal.

@coxd coxd changed the title Expose the fields, data types and options that exist in the project Expose the fields, their data types and options that exist in the project Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant