If you know anything about the Navy, you have to completely just throw it out the window and just enjoy the story.
Just some examples. They act like a naval aviator only becoming a Capt is because he's a screw up and everyone just becomes an admiral. Most aviators retire as cmdr or capt, very few flag billets. The air boss at top gun school was a 3 star, his aid a 2 star in the movie. Just silly. Maverick has this no rank crew chief that seems to follow him around.
The actual "mission" was basically blowing up the death star kind of silliness, when in reality, you'd use weapons designed to penetrate bunkers, then send in a bunch of missiles, having never left the deck of the ship. The movie could have been 15 min long. This maverick capt fella owns a 4 million dollar plan, his girlfriend owns a half million dollar yacht and a $300k vintage 911.
Just ignore all that and it's a nice story.